作者 潘浩文
1 个管道 的构建 通过 耗费 2 秒

XIAOPAN

@@ -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]);