作者 刘锟

update

@@ -65,6 +65,7 @@ class CNoticeController extends BaseController @@ -65,6 +65,7 @@ class CNoticeController extends BaseController
65 if($domain_info){ 65 if($domain_info){
66 //判断是否已有更新进行中 66 //判断是否已有更新进行中
67 $notify_model = new Notify(); 67 $notify_model = new Notify();
  68 + $type = $is_sitemap == 1 ? Notify::TYPE_ALL_SITEMAP : $type;
68 $data = [ 69 $data = [
69 'project_id' => $project_id, 70 'project_id' => $project_id,
70 'type' => $type, 71 'type' => $type,
@@ -90,6 +91,7 @@ class CNoticeController extends BaseController @@ -90,6 +91,7 @@ class CNoticeController extends BaseController
90 91
91 $data['data'] = Arr::a2s(['domain'=>$domain,'url'=>$url,'language'=>$language]); 92 $data['data'] = Arr::a2s(['domain'=>$domain,'url'=>$url,'language'=>$language]);
92 $data['status'] = $is_sitemap == 1 ? Notify::STATUS_FINISH_PAGE : Notify::STATUS_INIT; 93 $data['status'] = $is_sitemap == 1 ? Notify::STATUS_FINISH_PAGE : Notify::STATUS_INIT;
  94 + $data['is_pull_html_zip'] = $is_sitemap == 1 ? Notify::IS_PULL_HTML_ZIP_TRUE : Notify::IS_PULL_HTML_ZIP_FALSE;
93 $notify_model->add($data); 95 $notify_model->add($data);
94 } 96 }
95 } 97 }
@@ -18,11 +18,12 @@ class Notify extends Base @@ -18,11 +18,12 @@ class Notify extends Base
18 const STATUS_ERROR = 9; 18 const STATUS_ERROR = 9;
19 19
20 /** 20 /**
21 - * 类型 1:主站, 2:小语种, 3:amp 21 + * 类型 1:主站, 2:小语种, 3:amp,4:sitemap
22 */ 22 */
23 const TYPE_MASTER = 1; 23 const TYPE_MASTER = 1;
24 const TYPE_MINOR = 2; 24 const TYPE_MINOR = 2;
25 const TYPE_AMP = 3; 25 const TYPE_AMP = 3;
  26 + const TYPE_ALL_SITEMAP = 4;
26 27
27 /** 28 /**
28 * 路由 29 * 路由
@@ -41,6 +42,14 @@ class Notify extends Base @@ -41,6 +42,14 @@ class Notify extends Base
41 const ROUTE_PRODUCT_VIDEO_KEYWORD = 6; 42 const ROUTE_PRODUCT_VIDEO_KEYWORD = 6;
42 43
43 /** 44 /**
  45 + * 是否拉取HTML压缩包
  46 + * 0:默认不拉取
  47 + * 1:拉取
  48 + */
  49 + const IS_PULL_HTML_ZIP_FALSE = 0;
  50 + const IS_PULL_HTML_ZIP_TRUE = 1;
  51 +
  52 + /**
44 * 类型 53 * 类型
45 * @return array 54 * @return array
46 */ 55 */