Browse Source

Merge branch 'web_sannong_fr'

15313670163 12 hours ago
parent
commit
4b5a508a57
1 changed files with 2 additions and 4 deletions
  1. 2 4
      app/JsonRpc/NewsService.php

+ 2 - 4
app/JsonRpc/NewsService.php

@@ -6865,7 +6865,7 @@ class NewsService implements NewsServiceInterface
                         ->leftJoin('job_position', 'job_hunting.job_name_get', '=', 'job_position.zwid')
                         ->where('job_hunting.status', 2)
                         ->where('job_hunting.website_id', $data['website_id'])
-                        ->select('job_hunting.id','job_hunting.name','job_hunting.catid'
+                        ->select('job_hunting.id','job_hunting.name','job_hunting.cat_arr_id'
                         ,'job_position.zwname as job_name','job_hunting.updated_at')
                         ->orderBy('updated_at', 'desc')
                         ->limit($textnum)
@@ -6877,9 +6877,7 @@ class NewsService implements NewsServiceInterface
                 //  var_dump($catid.'222uuuuuuu'.$key);
                 if(!empty($job)){
                     foreach($job as $k => $value){
-                        if (isset($value->catid)) {
-                            $catId = $value->catid;
-                        } else if (isset($value->cat_arr_id)) {
+                        if (isset($value->cat_arr_id)) {
                             $catArr = json_decode($value->cat_arr_id, true);
                             $catId = end($catArr);
                         } else {