linwu hai 4 meses
pai
achega
bf17fe9b98

+ 0 - 2
app/Http/Controllers/Mobile/Content/JobsController.php

@@ -179,10 +179,8 @@ class JobsController extends MobileBaseController
                 $show_login_notice = 1;
                 $list_limit = config('aix.companyset.search_com.search_basic.jobs_search_num_login');
             }
-            $where[] = ['is_health','=',1];
             $size = 20;
             $list = $this->searchService->search('Job', $where, $order_by, $search_key, $size);
-            dd($list);
             if ($list->total()>0) {
                 $list_items = $this->jobsService->dealjobFilelds($list->items(), $map_data);
             } else {

+ 1 - 0
app/Http/Controllers/Web/Company/JobsController.php

@@ -188,6 +188,7 @@ class JobsController extends WebBaseController
         $data['map_y']        = empty($data['map_y']) ? '' : $data['map_y'];
         $data['is_deformity'] = empty($data['is_deformity']) ? 2 : $data['is_deformity'];
         $data['is_health']    = $user['is_health'];
+        $data['is_ic']        = $user['is_ic'];
         return $this->jobsService->jobsSave($data, $user);
     }
 

+ 0 - 3
app/Services/Common/SearchService.php

@@ -761,9 +761,6 @@ class SearchService
                         } elseif ($v[0] == 'range') {
                             $map_filter['distance'] = $v[2] . 'km';
                         } else {
-                            if ($v[0] == 'is_health') {
-//                                dd($v);
-                            }
                             $list->where($v[0], $v[2]);
                         }