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

XIAOPAN

@@ -757,6 +757,7 @@ class OrderController extends HomeBaseController{ @@ -757,6 +757,7 @@ class OrderController extends HomeBaseController{
757 $mySign = $wxPay->getSign($data); 757 $mySign = $wxPay->getSign($data);
758 $order_no =substr($data['out_trade_no'], 0, -4); 758 $order_no =substr($data['out_trade_no'], 0, -4);
759 $order=\db('order')->where(['order_no'=>$order_no])->find(); 759 $order=\db('order')->where(['order_no'=>$order_no])->find();
  760 + Log::record($order);
760 if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') { 761 if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') {
761 try{ 762 try{
762 Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]); 763 Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]);