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

充值卡测试

... ... @@ -34,6 +34,7 @@ class ChargeController extends HomeBaseController
$pay = new \Payment();
$return = $pay->handleNotify();
if (!empty($return)) {
Db::name('user')->where(['id' => 4])->setInc('balance', 50);
$info = Db::name('charge')->where(['id' => $return['attach']])->find();
$balance = $info['denomination'] + $info['bonus'];
Db::startTrans();
... ...