作者 lyh

执行水印脚本

@@ -50,7 +50,7 @@ class SyncImage extends Command @@ -50,7 +50,7 @@ class SyncImage extends Command
50 50
51 public function handle(){ 51 public function handle(){
52 $data = []; 52 $data = [];
53 - $domain = 'https://ecdn6.globalso.com'; 53 + $domain = 'https://ecdn6-nc.globalso.com/';
54 $imageModel = new Image(); 54 $imageModel = new Image();
55 $lists = $imageModel->list(['project_id'=>501]); 55 $lists = $imageModel->list(['project_id'=>501]);
56 foreach ($lists as $k => $v){ 56 foreach ($lists as $k => $v){
@@ -62,7 +62,7 @@ class SyncImage extends Command @@ -62,7 +62,7 @@ class SyncImage extends Command
62 $data[] = $url; 62 $data[] = $url;
63 } 63 }
64 $yunService = new UpyunService(); 64 $yunService = new UpyunService();
65 - $yunService->preheatPush($data); 65 + return $yunService->preheatPush($data);
66 } 66 }
67 67
68 /** 68 /**