1
0
whitefang 1 жил өмнө
parent
commit
76c8cfd155

+ 7 - 0
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -15,6 +15,7 @@
 namespace app\adminapi\logic\works;
 
 use app\api\logic\ThirdOrderLogic;
+use app\common\model\third\ThirdOrders;
 use think\Exception;
 use think\db\Query;
 use think\facade\Db;
@@ -559,6 +560,12 @@ class ServiceWorkLogic extends BaseLogic
                 $result['effective_income_amount'] = \app\adminapi\logic\effective\OrderEffectiveLogLogic::commissionAndAssuranceDeposit($serviceWork);
             }
         }
+
+        //获取美团订单信息
+        $result['meituan_order'] = [];
+        if($result['third_type']==1){
+            $result['meituan_order'] = ThirdOrders::where(['work_id'=>$result['id']])->order('create_time desc')->findOrEmpty();
+        }
         return  $result;
     }