正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -21,12 +21,11 @@ class TiktokShopProvider extends ServiceProvider | @@ -21,12 +21,11 @@ class TiktokShopProvider extends ServiceProvider | ||
| 21 | */ | 21 | */ |
| 22 | public function boot() | 22 | public function boot() |
| 23 | { | 23 | { |
| 24 | + if ($this->app->runningInConsole()) { | ||
| 24 | $configPath = __DIR__.'/../publish/tiktok.shop.php'; | 25 | $configPath = __DIR__.'/../publish/tiktok.shop.php'; |
| 25 | $this->publishes([ | 26 | $this->publishes([ |
| 26 | $configPath => config_path('tiktok.shop.php') | 27 | $configPath => config_path('tiktok.shop.php') |
| 27 | ], 'lackoxygen-tiktok-shop'); | 28 | ], 'lackoxygen-tiktok-shop'); |
| 28 | - | ||
| 29 | - if ($this->app->runningInConsole()) { | ||
| 30 | $this->commands($this->commands); | 29 | $this->commands($this->commands); |
| 31 | } | 30 | } |
| 32 | } | 31 | } |
-
请 注册 或 登录 后发表评论