1557492053 1 yıl önce
ebeveyn
işleme
d3a589f366

+ 2 - 2
application/api/service/CallbackService.php

@@ -119,7 +119,7 @@ class CallbackService extends BaseService
             // 余额抵扣
             if ($order["balance_deduction"] > 0) {
                 $this->userWalletModel->where("id", $wallet["id"])->setDec("money", $order["balance_deduction"]);
-                array_push($bills, [
+                $bills[] = [
                     "user_id" => $order->user_id,
                     "currency_type" => \E_USER_BILL_CURRENCY_TYPE::Money,
                     "change_type" => \E_USER_BILL_CHANGE_TYPE::BalanceDeduction[0],
@@ -131,7 +131,7 @@ class CallbackService extends BaseService
                     "give_money" => 0,
                     "relation_no" => $order->no,
                     "createtime" => time()
-                ]);
+                ];
             }
             $this->userBillModel->saveAll($bills);
             $progress = [];

+ 1 - 0
application/api/service/OrderService.php

@@ -688,6 +688,7 @@ class OrderService extends BaseService
                 default:
                     $res = $this->walletService->payBalance($order);
             }
+           (new CallbackService())->payOrderSuccess($order["no"]);
             return $res;
         } catch (Exception $e) {
             return $this->fail($e->getMessage());