visuddhinanda 2 лет назад
Родитель
Сommit
3de2220091
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/SentenceController.php

+ 1 - 1
app/Http/Controllers/SentenceController.php

@@ -179,7 +179,7 @@ class SentenceController extends Controller
         $user = AuthApi::current($request);
         if(!$user ){
             //未登录用户
-            return $this->error(__('auth.failed'));
+            return $this->error(__('auth.failed'),[],401);
         }
         $channel = Channel::where('uid',$request->get('channel'))->first();
         if(!$channel){