wesmiler 2 tháng trước cách đây
mục cha
commit
d27111c514
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Services/Api/BalanceLogService.php

+ 2 - 2
app/Services/Api/BalanceLogService.php

@@ -234,7 +234,7 @@ class BalanceLogService extends BaseService
         $order = [
             'user_id'=> $userId,
             'order_no'=> $orderNo,
-            'money'=> -$money,
+            'money'=> $money,
             'after_money'=> moneyFormat(max(0,$balance-$money), 2),
             'type'=>2,
             'account_type'=> $accountType,
@@ -259,7 +259,7 @@ class BalanceLogService extends BaseService
             'user_id' => $userId,
             'source_order_no' => $orderNo,
             'type' => 4,
-            'money' => $money,
+            'money' => -$money,
             'after_money' => moneyFormat(max(0,$balance-$money), 2),
             'date'=> date('Y-m-d'),
             'create_time' => time(),