|
@@ -38,6 +38,7 @@ class ChargeController extends HomeBaseController |
|
@@ -38,6 +38,7 @@ class ChargeController extends HomeBaseController |
38
|
$balance = $info['denomination'] + $info['bonus'];
|
38
|
$balance = $info['denomination'] + $info['bonus'];
|
39
|
Db::startTrans();
|
39
|
Db::startTrans();
|
40
|
if (Db::name('user')->where(['openid' => $return['openid'], 'id' => session('user.id')])->setInc('balance', $balance)) {
|
40
|
if (Db::name('user')->where(['openid' => $return['openid'], 'id' => session('user.id')])->setInc('balance', $balance)) {
|
|
|
41
|
+ session('op', $return['attach']);
|
41
|
$data = [
|
42
|
$data = [
|
42
|
'user_id' => session('user.id'),
|
43
|
'user_id' => session('user.id'),
|
43
|
'type' => 1,
|
44
|
'type' => 1,
|