作者 lihan
1 个管道 的构建 通过 耗费 0 秒

充值卡测试

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