LiuJ 4 달 전
부모
커밋
86ca05f120
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/JsonRpc/ClientService.php

+ 1 - 1
app/JsonRpc/ClientService.php

@@ -95,7 +95,7 @@ class ClientService implements ClientServiceInterface
             $category_arr_id = json_decode($value->category_arr_id);
             $pinyin_str = '';
             foreach ($category_arr_id as $k => $v) {
-                $pinyin_str .= $cat_arr[$v] . '/';
+                $pinyin_str .= isset($cat_arr[$v]) ? $cat_arr[$v] . '/' : '';
             }
             $pinyin_str = rtrim($pinyin_str, '/');
             $catiall[$value->category_id][] = $pinyin_str;