作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

合并分支 'wxg' 到 'master'

Wxg



查看合并请求 !17
... ... @@ -88,6 +88,7 @@ class WechatPay extends HomeBase
$out_trade_no=$notify->out_trade_no;
$vipOrderModel = new Viporder();
$data = $vipOrderModel->findData(['num'=>$out_trade_no]);
cache('a',$data);
if (empty($data)) { // 如果订单不存在
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
}
... ... @@ -98,6 +99,7 @@ class WechatPay extends HomeBase
}
$userModel = new \app\index\model\User();
$user = $userModel->findData(['id'=>$data['user_id']]);
cache('b',$user);
// 用户是否支付成功
if($successful){
if($data['vip_type'] == '1'){
... ... @@ -129,6 +131,11 @@ class WechatPay extends HomeBase
$response->send();
}
public function demo(){
dump(cache('a'));
dump(cache('b'));
}
/**
* 支付回调(购买商品)
* @throws \EasyWeChat\Core\Exceptions\FaultException
... ...