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