正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -89,7 +89,7 @@ class Pay extends Api | @@ -89,7 +89,7 @@ class Pay extends Api | ||
89 | 'msg':'返回成功' | 89 | 'msg':'返回成功' |
90 | }) | 90 | }) |
91 | */ | 91 | */ |
92 | - public function OrderNotify() | 92 | + public function AgreementPayNotify() |
93 | { | 93 | { |
94 | $paytype = $this->request->param('paytype'); | 94 | $paytype = $this->request->param('paytype'); |
95 | $pay = \addons\epay\library\Service::checkNotify($paytype); | 95 | $pay = \addons\epay\library\Service::checkNotify($paytype); |
@@ -103,7 +103,7 @@ class Pay extends Api | @@ -103,7 +103,7 @@ class Pay extends Api | ||
103 | //$data['out_trade_no'] 支付单号 | 103 | //$data['out_trade_no'] 支付单号 |
104 | $order_sn = $data['out_trade_no']; | 104 | $order_sn = $data['out_trade_no']; |
105 | $order = Db::name('pay_order')->where('PayOrder', $order_sn)->find(); | 105 | $order = Db::name('pay_order')->where('PayOrder', $order_sn)->find(); |
106 | - if ($order['status'] == 2) { | 106 | + if ($order['status'] == 1) { |
107 | return $pay->success('支付成功'); | 107 | return $pay->success('支付成功'); |
108 | die; | 108 | die; |
109 | } | 109 | } |
-
请 注册 或 登录 后发表评论