fuyu 5 年之前
父节点
当前提交
416de61fb9
共有 1 个文件被更改,包括 1 次插入2 次删除
  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 微信消息推送