作者 李宇航

合并分支 'lyh-server' 到 'master'

gx暂停优化项目



查看合并请求 !1851
... ... @@ -214,8 +214,7 @@ class ProjectLogic extends BaseLogic
*/
public function handleLevelStr($param){
if(!empty($param['level'])){
$values = explode(',', $param['level']);
if (in_array('2', $values) || in_array('3', $values)) {
if (in_array('2', $param['level']) || in_array('3', $param['level'])) {
//优化设置默认关闭
$param['is_ai_blog'] = 0;
$param['deploy_optimize']['is_ai_blog_send'] = 0;
... ...
... ... @@ -63,9 +63,8 @@ class RankDataLogic extends BaseLogic
$indexed_pages = IndexedPages::where('project_id', $project_id)->where('api_no', $api_no)->first();
$speed = Speed::where('project_id', $project_id)->first();
//暂停优化的项目(排名数据显示横杠 - ,关键词排名第一页 、 关键词排名前十页 、 Google收录页面数 、 可查询外链数)
if(!empty($param['level'])){
$values = explode(',', $param['level']);
if (in_array('2', $values) || in_array('3', $values)) {
if(!empty($project['level'])){
if (in_array('2', $project['level']) || in_array('3', $project['level'])) {
$rank['first_page_num'] = $rank['first_ten_pages_num'] = $rank['indexed_pages_num'] = $rank['external_links_num'] = '-';
}
}
... ...