cqpCow 1 year ago
parent
commit
e47bc20b38
1 changed files with 2 additions and 0 deletions
  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);