作者 刘锟

update

... ... @@ -292,8 +292,7 @@ class BlogLogic extends BaseLogic
'operator_id' => $user_id,
'create_id' => $user_id,
'status' => Blog::STATUS_ONE,
'url' => '',
'is_upgrade'=>1
'url' => ''
]
);
//更新路由
... ...
... ... @@ -328,8 +328,7 @@ class NewsLogic extends BaseLogic
'operator_id' => $user_id,
'create_id' => $user_id,
'status' => News::STATUS_ONE,
'url' => '',
'is_upgrade'=>1
'url' => ''
]
);
//更新路由
... ...
... ... @@ -637,8 +637,7 @@ class ProductLogic extends BaseLogic
'content' => $content,
'seo_mate' => Arr::a2s($seo_mate),
'created_uid' => $user_id,
'status' => Product::STATUS_ON,
'is_upgrade'=>1
'status' => Product::STATUS_ON
]
);
//更新路由
... ...
... ... @@ -34,7 +34,7 @@ class UpdateLog extends Model
$log->api_type = $type;
$log->api_url = $url;
$log->sort = $type == 'category' ? 0 : 1;
$log->collect_status = ($type == 'category' || $type == 'website_info') ? 1 : 0;
$log->collect_status = ($type == 'category' || $type == 'website_info' || $type == 'tag') ? 1 : 0;
return $log->save();
}
return true;
... ... @@ -58,7 +58,7 @@ class UpdateLog extends Model
}
$log->save();
}
return true;
}
}
... ...