正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -810,6 +810,10 @@ class OrderController extends HomeBaseController{ | @@ -810,6 +810,10 @@ class OrderController extends HomeBaseController{ | ||
810 | $mySign = $wxPay->getSign($data); | 810 | $mySign = $wxPay->getSign($data); |
811 | $order_no =substr($data['out_trade_no'], 0, -4); | 811 | $order_no =substr($data['out_trade_no'], 0, -4); |
812 | $order=\db('order')->where(['order_no'=>$order_no])->find(); | 812 | $order=\db('order')->where(['order_no'=>$order_no])->find(); |
813 | + if ($order['state']==3){ | ||
814 | + echo "SUCCESS"; | ||
815 | + exit; | ||
816 | + } | ||
813 | if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') { | 817 | if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') { |
814 | try{ | 818 | try{ |
815 | Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]); | 819 | Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]); |
-
请 注册 或 登录 后发表评论