whitefang 1 год назад
Родитель
Сommit
ee818c1cfc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/api/logic/ServiceOrderLogic.php

+ 1 - 1
app/api/logic/ServiceOrderLogic.php

@@ -134,7 +134,7 @@ class ServiceOrderLogic extends BaseLogic
             $order_info =  \app\common\model\recharge\RechargeOrder::with(['order_goods'=>function ($query) {
                 $query->visible(['goods_name','goods_image','goods_number','good_unit']);
             },'service_work'=>function ($query) {
-                $query->visible(['real_name','mobile','address','service_status','appointment_time','master_worker_id']);
+                $query->visible(['real_name','mobile','address','service_status','appointment_time','master_worker_id'])->append(['service_status_text','work_status_text','user_confirm_status_text']);
             }])
                 ->visible(['id','sn','order_total','order_amount','pay_status','create_time','title','work_id'])
                 ->where([