master
wangxinglong 2021-12-09 14:30:18 +08:00
parent 41b0bc9909
commit 8145fe9f89
1 changed files with 2 additions and 2 deletions

View File

@ -109,13 +109,13 @@ class Recharge extends Base
if ($message['return_code'] == 'SUCCESS') { // return_code 表示通信状态,不代表支付状态
if (isset($message['result_code']) && $message['result_code'] == 'SUCCESS') {
$this->log("订单支付成功开始数据操作");
$this->log("开始数据操作");
Db::startTrans();
try {
//这里确定支付成功
$total_fee = $message['total_fee'] / 100;
//加余额
$business->inc()->save([
$business->save([
"balance" => ($business["balance"] + $total_fee),
"total_recharge" => ($business["total_recharge"] + $total_fee)]
);