...
|
...
|
@@ -50,8 +50,8 @@ class OrderModel extends Model |
|
|
->find();
|
|
|
Db::startTrans();
|
|
|
$go = 'rollback';
|
|
|
$amount = ($order_amount == null) ? $orderInfo['order_amount'] : $order_amount;
|
|
|
if ($orderInfo['payment'] == 0) {
|
|
|
$amount = ($order_amount == null) ? $orderInfo['order_amount'] : $order_amount;
|
|
|
if (Db::name('user')->where(['id' => $orderInfo['user_id']])->setDec('balance', $amount)) {
|
|
|
$wallet = [
|
|
|
'user_id' => $orderInfo['user_id'],
|
...
|
...
|
|