...
|
...
|
@@ -128,7 +128,7 @@ class OrderController extends AdminBaseController |
|
|
$userId = Db::name('order_detail')->alias('s')
|
|
|
->join('order_info o', 'o.id=s.oid')
|
|
|
->value('user_id');
|
|
|
if (Db::name('user')->where(['id' => 2])->setInc('balance', $refund_amount)) {
|
|
|
if (Db::name('user')->where(['id' => $userId])->setInc('balance', $refund_amount)) {
|
|
|
$log = [
|
|
|
'user_id' => $userId,
|
|
|
'type' => 2,
|
...
|
...
|
|