作者 李宇航

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

gx暂停优化项目



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