...
|
...
|
@@ -39,7 +39,7 @@ class ChargeController extends HomeBaseController |
|
|
Db::startTrans();
|
|
|
if (Db::name('user')->where(['openid'=>$return['openid']])->setInc('balance', $balance)) {
|
|
|
$data = [
|
|
|
'user_id' => session('user.id'),
|
|
|
'user_id' => Db::name('user')->where(['openid'=>$return['openid']])->value('id'),
|
|
|
'type' => 1,
|
|
|
'cost' => $balance,
|
|
|
'create_time' => time()
|
...
|
...
|
|