设置支付标识

This commit is contained in:
liu 2024-07-06 17:26:26 +08:00
parent 8312b5755a
commit b66e01c585

View File

@ -137,6 +137,7 @@ class StoreController extends BaseApiController
return $this->fail(PaymentLogic::getError());
}
if (isset($result['trade_state_desc']) && $result['trade_state_desc'] == '支付成功') {
Redis::connection()->set('trade_state',json_encode($result));
PayNotifyLogic::handle('recharge', $result['out_trade_no'], $result);
} else {
Redis::send('send-code-pay', ['order_id' => $order['order_id'],'pay_type'=>'recharge']);