stanley-king 9 سال پیش
والد
کامیت
64eb7e49d8
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      mobile/wxnotify.php

+ 3 - 1
mobile/wxnotify.php

@@ -63,14 +63,16 @@ try
         wxLog::DEBUG("out_trade_no={$out_trade_no} and transaction_id = {$transaction_id}");
         Log::record("out_trade_no={$out_trade_no} and transaction_id = {$transaction_id}",Log::DEBUG);
 
+        $cb_info = app_payControl::update_order($out_trade_no,$transaction_id,'wxpay');
+
         if($cb_info['state'] == false) {
             wxLog::ERROR('wxpay error 1.');
             Log::record('wxpay error.',Log::DEBUG);
         } else {
             wxLog::DEBUG('wxpay success.');
             Log::record('wxpay success.',Log::DEBUG);
-            $cb_info = app_payControl::update_order($out_trade_no,$transaction_id,'wxpay');
         }
+        
         $ret_wx['return_code'] = 'SUCCESS';
         $ret_wx['return_msg'] = 'OK';
     } else {