|
|
@ -8,6 +8,7 @@ use app\api\model\User as UserModel; |
|
|
|
use app\api\model\user\BalanceLog as BalanceLogModel; |
|
|
|
use app\api\model\user\BalanceLog as BalanceLogModel; |
|
|
|
use app\common\enum\order\PayStatus as PayStatusEnum; |
|
|
|
use app\common\enum\order\PayStatus as PayStatusEnum; |
|
|
|
use app\common\enum\payment\Method as PaymentMethodEnum; |
|
|
|
use app\common\enum\payment\Method as PaymentMethodEnum; |
|
|
|
|
|
|
|
use app\common\enum\ServerEnum; |
|
|
|
use app\common\enum\user\balanceLog\Scene as SceneEnum; |
|
|
|
use app\common\enum\user\balanceLog\Scene as SceneEnum; |
|
|
|
use app\common\library\Lock; |
|
|
|
use app\common\library\Lock; |
|
|
|
use app\common\library\Log; |
|
|
|
use app\common\library\Log; |
|
|
@ -210,6 +211,7 @@ class PaySuccess extends BaseService |
|
|
|
// 更新订单状态 |
|
|
|
// 更新订单状态 |
|
|
|
$this->orderModel()->save([ |
|
|
|
$this->orderModel()->save([ |
|
|
|
'pay_method' => $this->method, |
|
|
|
'pay_method' => $this->method, |
|
|
|
|
|
|
|
'order_status' => ServerEnum::APPLYDISPATCH, |
|
|
|
'pay_status' => PayStatusEnum::SUCCESS, |
|
|
|
'pay_status' => PayStatusEnum::SUCCESS, |
|
|
|
'pay_time' => time(), |
|
|
|
'pay_time' => time(), |
|
|
|
'trade_id' => $this->tradeId ?: 0, |
|
|
|
'trade_id' => $this->tradeId ?: 0, |
|
|
|