正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -39,7 +39,7 @@ class ChargeController extends HomeBaseController | @@ -39,7 +39,7 @@ class ChargeController extends HomeBaseController | ||
39 | Db::startTrans(); | 39 | Db::startTrans(); |
40 | if (Db::name('user')->where(['openid'=>$return['openid']])->setInc('balance', $balance)) { | 40 | if (Db::name('user')->where(['openid'=>$return['openid']])->setInc('balance', $balance)) { |
41 | $data = [ | 41 | $data = [ |
42 | - 'user_id' => session('user.id'), | 42 | + 'user_id' => Db::name('user')->where(['openid'=>$return['openid']])->value('id'), |
43 | 'type' => 1, | 43 | 'type' => 1, |
44 | 'cost' => $balance, | 44 | 'cost' => $balance, |
45 | 'create_time' => time() | 45 | 'create_time' => time() |
-
请 注册 或 登录 后发表评论