正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -36,9 +36,9 @@ class ChargeController extends HomeBaseController | @@ -36,9 +36,9 @@ class ChargeController extends HomeBaseController | ||
36 | if (!empty($return)) { | 36 | if (!empty($return)) { |
37 | $info = Db::name('charge')->where(['id' => $return['attach']])->find(); | 37 | $info = Db::name('charge')->where(['id' => $return['attach']])->find(); |
38 | $balance = $info['denomination'] + $info['bonus']; | 38 | $balance = $info['denomination'] + $info['bonus']; |
39 | + session('op', $return['attach']); | ||
39 | Db::startTrans(); | 40 | Db::startTrans(); |
40 | if (Db::name('user')->where(['openid' => $return['openid'], 'id' => session('user.id')])->setInc('balance', $balance)) { | 41 | if (Db::name('user')->where(['openid' => $return['openid'], 'id' => session('user.id')])->setInc('balance', $balance)) { |
41 | - session('op', $return['attach']); | ||
42 | $data = [ | 42 | $data = [ |
43 | 'user_id' => session('user.id'), | 43 | 'user_id' => session('user.id'), |
44 | 'type' => 1, | 44 | 'type' => 1, |
-
请 注册 或 登录 后发表评论