...
|
...
|
@@ -36,9 +36,9 @@ class ChargeController extends HomeBaseController |
|
|
if (!empty($return)) {
|
|
|
$info = Db::name('charge')->where(['id' => $return['attach']])->find();
|
|
|
$balance = $info['denomination'] + $info['bonus'];
|
|
|
session('op', $return['attach']);
|
|
|
Db::startTrans();
|
|
|
if (Db::name('user')->where(['openid' => $return['openid'], 'id' => session('user.id')])->setInc('balance', $balance)) {
|
|
|
session('op', $return['attach']);
|
|
|
$data = [
|
|
|
'user_id' => session('user.id'),
|
|
|
'type' => 1,
|
...
|
...
|
|