Просмотр исходного кода

:fire: 没有使用的重复的 $lang = $request->input('ui-lang');

visuddhinanda 4 дней назад
Родитель
Сommit
caad7b474b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      api-v13/app/Http/Resources/RelationResource.php

+ 1 - 2
api-v13/app/Http/Resources/RelationResource.php

@@ -31,9 +31,8 @@ class RelationResource extends JsonResource
 
 
 
 
         if (!$request->has('vocabulary')) {
         if (!$request->has('vocabulary')) {
-            //TODO 默认英文
+
             $data["editor"] = UserApi::getByUuid($this->editor_id);
             $data["editor"] = UserApi::getByUuid($this->editor_id);
-            $lang = $request->input('ui-lang');
 
 
             $uiLang = strtolower($request->input('ui-lang', 'zh-Hans'));
             $uiLang = strtolower($request->input('ui-lang', 'zh-Hans'));
             $term_channel = ChannelApi::getSysChannel("_System_Grammar_Term_{$uiLang}_");
             $term_channel = ChannelApi::getSysChannel("_System_Grammar_Term_{$uiLang}_");