linwu hai 6 meses
pai
achega
6cda087965
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      app/Http/Controllers/Api/Soldier/JobController.php

+ 3 - 3
app/Http/Controllers/Api/Soldier/JobController.php

@@ -30,7 +30,7 @@ class JobController extends ApiBaseController
             $where[] = ['updated_at', '>', $update_at];
         }
 
-        $list = Jobs::select('id', 'jobs_name', 'company_name', 'nature', 'sex', 'age', 'amount', 'topclass', 'category', 'subclass', 'trade', 'scale', 'tag', 'education', 'experience', 'wage', 'wage_max', 'negotiable', 'wage_min', 'wage_str', 'jobs_content', 'department', 'created_at', 'updated_at')
+        $list = Jobs::select('id', 'company_id', 'jobs_name', 'company_name', 'nature', 'sex', 'age', 'amount', 'topclass', 'category', 'subclass', 'trade', 'scale', 'tag', 'education', 'experience', 'wage', 'wage_max', 'negotiable', 'wage_min', 'wage_str', 'jobs_content', 'department', 'created_at', 'updated_at')
             ->where($where)
             ->offset(($page - 1) * $limit)
             ->limit($limit)
@@ -79,8 +79,8 @@ class JobController extends ApiBaseController
             $list[$k]['company_address']   = $company_list[$v['company_id']]['address'];
             $list[$k]['company_map_x']     = $company_list[$v['company_id']]['map_x'];
             $list[$k]['company_map_y']     = $company_list[$v['company_id']]['map_y'];
-            
-            $tags                          = [];
+
+            $tags = [];
             foreach ($v['tag'] as $tag) {
                 if (!empty($category_list[$tag])) {
                     $tags[] = $category_list[$tag];