Commit d17ab518 authored by xupeng's avatar xupeng

审核结算代码修改

parent 5e66f7b9
......@@ -280,7 +280,7 @@ def transfer_trigger_task(uuid, user_id, balance, type, amount_type, remark='用
try:
if not res['data']['result']['status']:
if 'Insufficient assets' in res['data']['result']['msg']:
return "资产不足,无法转账"
return 200,"资产不足,无法转账"
return res['data']['result']['msg']
except Exception as e:
return f"清算系统异常:{str(e)}"
......@@ -543,6 +543,7 @@ def GuildSettlementAdd(db, data):
db.query(GuildSettlementLog).filter(GuildSettlementLog.id == data.id).update(
{GuildSettlementLog.status: data.status, GuildSettlementLog.update_time: get_now_datetime()})
db.commit()
return 200,{"msg": "操作成功"}
if guild_data.status==1:
first_sta = 00
# 钻石处理
......
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