fly 4 年之前
父節點
當前提交
e5ce6361c4
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/Controllers/BaseControllerConfig.php

+ 3 - 2
src/Controllers/BaseControllerConfig.php

@@ -31,7 +31,7 @@ trait BaseControllerConfig
         }
     }
 
-    protected function channel(): Model
+    protected function channel()
     {
         if (empty(session('ydychannel'))) {
             if (env('APP_ENV') == 'local') return Channel::find(1);
@@ -44,9 +44,10 @@ trait BaseControllerConfig
         return redisEnv('SHENJI_SWITCH') ? 1 : 0;
     }
 
+
     protected function is_sj_inner(): bool
     {
-        return in_array($this->phone(), $this->getInnerPhone());
+        return in_array($this->phone, $this->inner_phones);
     }
 
     protected function inner_phones(): array