作者 lyh

变更数据

@@ -53,6 +53,7 @@ class SendProduct extends Command @@ -53,6 +53,7 @@ class SendProduct extends Command
53 if(empty($domain)){ 53 if(empty($domain)){
54 continue; 54 continue;
55 } 55 }
  56 + try {
56 $arr1 = $this->sendProduct(); 57 $arr1 = $this->sendProduct();
57 $arr2 = $this->sendBlog(); 58 $arr2 = $this->sendBlog();
58 $arr3 = $this->sendNews(); 59 $arr3 = $this->sendNews();
@@ -67,10 +68,13 @@ class SendProduct extends Command @@ -67,10 +68,13 @@ class SendProduct extends Command
67 'language'=> [], 68 'language'=> [],
68 'is_sitemap' => 0 69 'is_sitemap' => 0
69 ]; 70 ];
  71 + //TODO::通知C端生成界面
70 http_post($c_url, json_encode($param)); 72 http_post($c_url, json_encode($param));
71 } 73 }
72 - //TODO::通知C端生成界面 74 + }catch (\Exception $e){
73 DB::disconnect('custom_mysql'); 75 DB::disconnect('custom_mysql');
  76 + continue;
  77 + }
74 } 78 }
75 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; 79 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
76 } 80 }