|
@@ -6,6 +6,7 @@ use app\api\service\order\paysuccess\type\PayTypeSuccessFactory;
|
|
|
use app\common\enum\order\OrderTypeEnum;
|
|
use app\common\enum\order\OrderTypeEnum;
|
|
|
use app\common\enum\order\OrderPayTypeEnum;
|
|
use app\common\enum\order\OrderPayTypeEnum;
|
|
|
use app\common\exception\BaseException;
|
|
use app\common\exception\BaseException;
|
|
|
|
|
+use think\facade\Cache;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 微信支付
|
|
* 微信支付
|
|
@@ -117,6 +118,7 @@ class WxPay
|
|
|
log_write($data);
|
|
log_write($data);
|
|
|
$attach = json_decode($data['attach'], true);
|
|
$attach = json_decode($data['attach'], true);
|
|
|
// 实例化订单模型
|
|
// 实例化订单模型
|
|
|
|
|
+ Cache::tag("cache")->set('pay_result:'.$data['out_trade_no'], ['data'=> $data,'attach'=>$attach], 600);
|
|
|
$PaySuccess = PayTypeSuccessFactory::getFactory($data['out_trade_no'], $attach);
|
|
$PaySuccess = PayTypeSuccessFactory::getFactory($data['out_trade_no'], $attach);
|
|
|
$app_id = $PaySuccess->isExist();
|
|
$app_id = $PaySuccess->isExist();
|
|
|
$app_id == 0 && $this->returnCode(false, '订单不存在');
|
|
$app_id == 0 && $this->returnCode(false, '订单不存在');
|