Jelajahi Sumber

Merge branch 'master' of http://git.bjzxtw.org.cn:3000/zxt/public_producer

LiuJ 2 hari lalu
induk
melakukan
ab43c888bd
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/JsonRpc/WebsiteService.php

+ 2 - 2
app/JsonRpc/WebsiteService.php

@@ -2186,8 +2186,8 @@ class WebsiteService implements WebsiteServiceInterface
             return Result::error("暂无该网站", 0);
         }
         // return Result::success($data);
-        if (isset($data['pinyin']) && !empty($data['pinyin'])) {
-            $result = WebsiteCategory::where('website_id', $data['website_id'])->where('aLIas_pinyin', $data['pinyin'])->first(['category_id']);
+        if (isset($data['pinyin']) &&!empty($data['pinyin'])) {
+            $result = WebsiteCategory::where('website_id',$data['website_id'])->where('aLIas_pinyin',$data['pinyin'])->first(['category_id','alias']);
         }
         if (isset($data['foot_pinyin']) && !empty($data['foot_pinyin'])) {
             $result = FooterCategory::where('website_id', $data['website_id'])->where('name_pinyin', $data['foot_pinyin'])->first(['id']);