作者 赵彬吉

update

... ... @@ -175,8 +175,9 @@ class WebTrafficFix extends Command
$project_list = $this->getProjectList($type);
foreach ($project_list as $project) {
ProjectServer::useProject($project['project_id']);
echo 'project_id:' . $project['project_id'] . PHP_EOL;
$ip_num = DB::connection('custom_mysql')->table('gl_customer_visit_item')->whereDate('updated_date', $date)->count();
$ip_num = DB::connection('custom_mysql')->table('gl_customer_visit')->whereDate('updated_date', $date)->count();
if($ip_num >= 30){
continue;
}
... ... @@ -295,7 +296,6 @@ class WebTrafficFix extends Command
* 获取产品分类、单页和详情链接
*/
protected function getProductUrls($project_id){
ProjectServer::useProject($project_id);
//已发布产品分类页面
$data['urls_cats'] = DB::connection('custom_mysql')->table('gl_product_category')
->where('project_id', $project_id)->where('status', Category::STATUS_ACTIVE)
... ...