Procházet zdrojové kódy

Merge branch '20250306_jobrecuiting_fr'

15313670163 před 1 týdnem
rodič
revize
469d5eb2f8
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10 0
      app/JsonRpc/NewsService.php

+ 10 - 0
app/JsonRpc/NewsService.php

@@ -3960,6 +3960,16 @@ class NewsService implements NewsServiceInterface
             }
             $result['city'] = $city['name'] ?? '';
         }
+        $addressId = json_decode($result['address_arr_id'], true)?? [];
+        if(is_array($addressId) && !empty($addressId)){
+            $address = District::whereIn('id', $addressId)
+            ->orderBy('level', 'asc')
+            ->get(['name'])
+            ->pluck('name')
+            ->implode('');
+            // $job->address_name = $address ?? '';
+            $result['address_name'] = ($address ?? '') . ($result['address'] ?? '');
+        }
         if(empty($result)){
             return Result::error("招聘信息不存在", 0);
         }