fuyu hace 5 años
padre
commit
416de61fb9
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      application/inter/controller/Wechat.php

+ 1 - 2
application/inter/controller/Wechat.php

@@ -30,10 +30,9 @@ class Wechat extends Base {
         DB::table('wechat_refund_log')->insert( array_merge($refund, $data));
 
         $order_id = $refund['out_trade_no'];
-        $order = DB::table('remote_order')->where('id', $order_id)->field('status, application_id')-find();
+        $order = DB::table('remote_order')->where('id', $order_id)->field('status')-find();
         if(!empty($order) && $order['status'] === Application::ORDER_STATUS['CANCEL']) {
             DB::table('remote_order')->where('id', $order_id)->update(['status' => Application::ORDER_STATUS['REDUCE']]);
-            $remote_application = DB::table('remote_application')->where('id', $order['application_id'])->field('exam_id')-find();
             // $wechatService->pushWechatRefund($remote_application['exam_id']);
             $wechatService->pushWechatRefund($order_id);
             // todo 微信消息推送