作者 竞泽

feat:boot pre env

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