Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
29 行增加
和
1 行删除
| @@ -10,6 +10,7 @@ use App\Models\Product\Keyword; | @@ -10,6 +10,7 @@ use App\Models\Product\Keyword; | ||
| 10 | use App\Models\Product\KeywordRelated; | 10 | use App\Models\Product\KeywordRelated; |
| 11 | use App\Models\Product\Product; | 11 | use App\Models\Product\Product; |
| 12 | use App\Models\Project\Project; | 12 | use App\Models\Project\Project; |
| 13 | +use App\Models\SyncSubmitTask\SyncSubmitTask; | ||
| 13 | use App\Models\WebSetting\WebLanguage; | 14 | use App\Models\WebSetting\WebLanguage; |
| 14 | use App\Services\BatchExportService; | 15 | use App\Services\BatchExportService; |
| 15 | use App\Services\ProjectServer; | 16 | use App\Services\ProjectServer; |
| @@ -33,7 +34,27 @@ class Temp extends Command | @@ -33,7 +34,27 @@ class Temp extends Command | ||
| 33 | 34 | ||
| 34 | public function handle() | 35 | public function handle() |
| 35 | { | 36 | { |
| 36 | - $this->create_all_amp_notify(); | 37 | + $this->check_m_visit(); |
| 38 | + } | ||
| 39 | + | ||
| 40 | + public function check_m_visit() | ||
| 41 | + { | ||
| 42 | + $list = SyncSubmitTask::where('project_id', 0)->where('data', 'like', '%m.m.%')->limit(5000)->get(); | ||
| 43 | + foreach ($list as $item){ | ||
| 44 | + dump($item->id); | ||
| 45 | + $data = $item->data; | ||
| 46 | + $item_data = $data['data']; | ||
| 47 | + $item_data = str_replace('m.m.', 'm.',$item_data); | ||
| 48 | + $data['data'] = $item_data; | ||
| 49 | + $data = str_replace('m.m.', 'm.', $data); | ||
| 50 | + $item->data = $data; | ||
| 51 | + $item->status = 0; | ||
| 52 | + $item->retry = 0; | ||
| 53 | + $item->remark = ''; | ||
| 54 | + $item->save(); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + $this->output('success'); | ||
| 37 | } | 58 | } |
| 38 | 59 | ||
| 39 | /** | 60 | /** |
| @@ -213,6 +213,7 @@ class RankDataLogic extends BaseLogic | @@ -213,6 +213,7 @@ class RankDataLogic extends BaseLogic | ||
| 213 | $ext_projects = $this->getExtendProjects(); | 213 | $ext_projects = $this->getExtendProjects(); |
| 214 | $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no); | 214 | $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no); |
| 215 | $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''); | 215 | $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''); |
| 216 | + $main_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['url'] ?? ''); | ||
| 216 | //AI站点域名 | 217 | //AI站点域名 |
| 217 | $ai_projects = $this->getAiProjects()['data'] ?? []; | 218 | $ai_projects = $this->getAiProjects()['data'] ?? []; |
| 218 | $flg_ai = $this->getAiFlag($ai_projects, $domain); | 219 | $flg_ai = $this->getAiFlag($ai_projects, $domain); |
| @@ -243,6 +244,12 @@ class RankDataLogic extends BaseLogic | @@ -243,6 +244,12 @@ class RankDataLogic extends BaseLogic | ||
| 243 | } | 244 | } |
| 244 | } | 245 | } |
| 245 | } | 246 | } |
| 247 | + //当前站是复制站,显示主站的域名 | ||
| 248 | + if($flg_ext == 2 && empty($last['r'])){ | ||
| 249 | + $domain = $main_domain; | ||
| 250 | + $domain_text = '主域名:' . $main_domain; | ||
| 251 | + } | ||
| 252 | + | ||
| 246 | $domain_arr = explode(':', $domain_text); | 253 | $domain_arr = explode(':', $domain_text); |
| 247 | $v = [ | 254 | $v = [ |
| 248 | 'keyword' => $key, | 255 | 'keyword' => $key, |
-
请 注册 或 登录 后发表评论