Commit 25aab930 by 冷斌

fix bug

parent ccb220f1
...@@ -429,6 +429,18 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -429,6 +429,18 @@ class Model_User extends PhalApi_Model_NotORM
]); ]);
} }
$dd = [
'uid' => $uid,
'coin' =>$rechange['money'],
'votes' => $cashvotes,
'recharge_rule_id' => $id,
'source' => $source,
'addtime' => time(),
];
DI()->notorm->users_recharge->insert($dd);
// DI()->notorm->users->where('id = ?', $uid)->update([ // DI()->notorm->users->where('id = ?', $uid)->update([
// 'coin' => new NotORM_Literal("coin + {$total}"), // 'coin' => new NotORM_Literal("coin + {$total}"),
// 'votes' => new NotORM_Literal("votes - {$rechange['money']}"), // 'votes' => new NotORM_Literal("votes - {$rechange['money']}"),
......
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