|
@@ -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
|