cqpCow 1 년 전
부모
커밋
e47bc20b38
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/Service/ConstructionService.php

+ 2 - 0
app/Service/ConstructionService.php

@@ -347,6 +347,8 @@ class ConstructionService extends Service
         }
         if(empty($construction)) return [false,'施工订单不存在或已被删除'];
         $construction = $construction->toArray();
+        $construction['state_title'] = Construction::$name[$construction['state']] ?? '';
+        $construction['pq_state_title'] = Construction::$pq_name[$construction['pq_state']] ?? '';
         $address = '';
         if(! empty($construction['address1'])) {
             $tmp = json_decode($construction['address1'],true);