Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server
正在显示
4 个修改的文件
包含
8 行增加
和
4 行删除
| @@ -64,7 +64,7 @@ class SendKeyword extends Command | @@ -64,7 +64,7 @@ class SendKeyword extends Command | ||
| 64 | }) | 64 | }) |
| 65 | ->get(); | 65 | ->get(); |
| 66 | $time = time(); | 66 | $time = time(); |
| 67 | - $send_num = [30 => 1000, 60 => 3000, 90 => 6000]; | 67 | + $send_num = [30 => 1000, 50 => 2000, 60 => 4000, 70 => 6000]; |
| 68 | $ban_domain = $this->banDomain(); | 68 | $ban_domain = $this->banDomain(); |
| 69 | foreach ($projects as $item) { | 69 | foreach ($projects as $item) { |
| 70 | if (empty($item->is_auto_keywords)) | 70 | if (empty($item->is_auto_keywords)) |
| @@ -51,7 +51,7 @@ class GeneratePage extends Command | @@ -51,7 +51,7 @@ class GeneratePage extends Command | ||
| 51 | { | 51 | { |
| 52 | $noticeModel = new NoticeLog(); | 52 | $noticeModel = new NoticeLog(); |
| 53 | while (true){ | 53 | while (true){ |
| 54 | - $noticeInfo = $noticeModel->read(['status'=>0,'type'=>$noticeModel::GENERATE_PAGE]); | 54 | + $noticeInfo = $noticeModel->read(['status'=>0,'type'=>$noticeModel::GENERATE_PAGE,'start_at'=>['<=',date('Y-m-d H:i:s')]]); |
| 55 | if (empty($noticeInfo)) { | 55 | if (empty($noticeInfo)) { |
| 56 | sleep(10); | 56 | sleep(10); |
| 57 | continue; | 57 | continue; |
| @@ -7,6 +7,7 @@ use App\Helper\Common; | @@ -7,6 +7,7 @@ use App\Helper\Common; | ||
| 7 | use App\Helper\Gpt; | 7 | use App\Helper\Gpt; |
| 8 | use App\Models\Ai\AiCommand; | 8 | use App\Models\Ai\AiCommand; |
| 9 | use App\Models\Ai\AiTdkErrorLog; | 9 | use App\Models\Ai\AiTdkErrorLog; |
| 10 | +use App\Models\Com\NoticeLog; | ||
| 10 | use App\Models\Com\UpdateNotify; | 11 | use App\Models\Com\UpdateNotify; |
| 11 | use App\Models\Domain\DomainInfo; | 12 | use App\Models\Domain\DomainInfo; |
| 12 | use App\Models\Mail\Mail; | 13 | use App\Models\Mail\Mail; |
| @@ -258,7 +259,8 @@ class UpdateSeoTdk extends Command | @@ -258,7 +259,8 @@ class UpdateSeoTdk extends Command | ||
| 258 | 'url' => [], | 259 | 'url' => [], |
| 259 | 'language'=> [], | 260 | 'language'=> [], |
| 260 | ]; | 261 | ]; |
| 261 | - http_post($url, json_encode($param)); | 262 | + NoticeLog::createLog(NoticeLog::GENERATE_PAGE, json_encode(['c_url'=>$url,'c_params'=>$param]),date('Y-m-d H:i:s',time()+300)); |
| 263 | +// http_post($url, json_encode($param)); | ||
| 262 | echo getmypid() . ' ' . '更新中请稍后, 更新完成将会发送站内信通知更新结果!'. PHP_EOL; | 264 | echo getmypid() . ' ' . '更新中请稍后, 更新完成将会发送站内信通知更新结果!'. PHP_EOL; |
| 263 | } | 265 | } |
| 264 | public function seo_tdk($project_id, $task_id) | 266 | public function seo_tdk($project_id, $task_id) |
| @@ -29,13 +29,15 @@ class NoticeLog extends Base | @@ -29,13 +29,15 @@ class NoticeLog extends Base | ||
| 29 | * 创建日志 | 29 | * 创建日志 |
| 30 | * @param $type | 30 | * @param $type |
| 31 | * @param $data | 31 | * @param $data |
| 32 | + * @param $start_at | ||
| 32 | * @return mixed | 33 | * @return mixed |
| 33 | */ | 34 | */ |
| 34 | - public static function createLog($type, $data) | 35 | + public static function createLog($type, $data,$start_at=0) |
| 35 | { | 36 | { |
| 36 | $log = new self(); | 37 | $log = new self(); |
| 37 | $log->type = $type; | 38 | $log->type = $type; |
| 38 | $log->data = $data; | 39 | $log->data = $data; |
| 40 | + $log->start_at = $start_at ?: date('Y-m-d H:i:s'); | ||
| 39 | return $log->save(); | 41 | return $log->save(); |
| 40 | } | 42 | } |
| 41 | 43 |
-
请 注册 或 登录 后发表评论