From c4203762967c28f5cd1b0517a44be545db3c2db2 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Thu, 25 Apr 2024 23:49:30 +0800 Subject: [PATCH] fix --- cronjob/vas/fix_diamonds.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cronjob/vas/fix_diamonds.py b/cronjob/vas/fix_diamonds.py index 25f9acf..a8964f5 100644 --- a/cronjob/vas/fix_diamonds.py +++ b/cronjob/vas/fix_diamonds.py @@ -52,7 +52,14 @@ class S: now_dias, now_wdias = self.get_mid_now_dias_wdias(mid) # logger.Info("mid:{}, 总钻石:{}, 背包钻石:{}, 钻石差:{}, 背包提现钻石:{}, 已提现钻石:{}".format(mid, all_dias, now_dias, all_dias - now_dias, now_wdias, wdias)) - logger.Info("mid:{}, 背包钻石:{}, 修改后的背包钻石:{}, 背包提现钻石:{}".format(mid, all_dias, all_dias-wdias, now_wdias)) + logger.Info("mid:{}, 背包钻石:{}, 修改后的背包钻石:{}, 背包提现钻石:{}".format(mid, all_dias, all_dias - wdias, now_wdias)) + + new_dias = all_dias - wdias + update_sql = '''update vas_wallet set diamonds={} where id={}'''.format(new_dias, mid) + logger.Info("update_sql: {}".format(update_sql)) + # ret = self.mysql_db_vas.exec(update_sql, (new_dias, mid)) + # logger.Info("sql_ret: {}".format(ret)) + s = S() s.proc()