浏览代码

Merge branch '20250605_company_fr'

15313670163 5 月之前
父节点
当前提交
3ebf2c4721
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/JsonRpc/NewsService.php

+ 5 - 0
app/JsonRpc/NewsService.php

@@ -6462,6 +6462,11 @@ class NewsService implements NewsServiceInterface
   public function getCompanyInfo(array $data): array
   public function getCompanyInfo(array $data): array
   {
   {
     $result = Company::where('id', $data['id'])->first();
     $result = Company::where('id', $data['id'])->first();
+    $city_arr = json_decode($result['city_arr_id']);
+     $result['city_name'] = District::whereIn('id', $city_arr)
+        ->pluck('name')
+        ->implode('-');
+
     if (empty($result)) {
     if (empty($result)) {
       return Result::error('企业不存在!');
       return Result::error('企业不存在!');
     } else {
     } else {