Commit 303e8072 authored by xianyang's avatar xianyang

优化字段名称

parent b1ce71cd
......@@ -710,7 +710,12 @@ class SpecificAccountQuery(object):
i['reference_name'] = TYPE_NAME[i['reference_type']] if TYPE_NAME.get(i['reference_type']) else i[
'reference_type']
if self.unique_tag == 'guild_account':
i['amount_type'] = '可消费' if i['amount_type'] == 'consumable' else '可提现'
if i['amount_type'] == 'consumable':
i['amount_type'] = '可消费账户'
elif i['amount_type'] == 'withdrawable':
i['amount_type'] = '可提现账户'
else:
i['amount_type'] = '背包账户'
data_pd = pd.DataFrame(self.total_list)
amount_total = data_pd['amount'].sum()
return res, total, float(amount_total)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment