...
|
...
|
@@ -88,7 +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);
|
|
|
cache('a',$data['vip_type']."&");
|
|
|
if (empty($data)) { // 如果订单不存在
|
|
|
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
|
|
|
}
|
...
|
...
|
@@ -99,7 +99,7 @@ class WechatPay extends HomeBase |
|
|
}
|
|
|
$userModel = new \app\index\model\User();
|
|
|
$user = $userModel->findData(['id'=>$data['user_id']]);
|
|
|
cache('b',$user);
|
|
|
cache('b',$user['is_vip']."&");
|
|
|
// 用户是否支付成功
|
|
|
if($successful){
|
|
|
if($data['vip_type'] == '1'){
|
...
|
...
|
|