|
...
|
...
|
@@ -44,24 +44,13 @@ class RankData extends BaseCommands |
|
|
|
public function do()
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
Log::channel('rank_data')->info('开始-排名数据');
|
|
|
|
//同步api_no
|
|
|
|
// try {
|
|
|
|
// $this->SyncApiNo();
|
|
|
|
// } catch (\Exception $e) {
|
|
|
|
// Log::channel('rank_data')->error('同步api_no失败:' . $e->getMessage());
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
//所有项目 今日是否达标 重置
|
|
|
|
//有失败会重跑任务,导致达标又被重置 加缓存一天只重置一次
|
|
|
|
if (!Cache::get('clear_remain_today_' . date('Y-m-d'))) {
|
|
|
|
Project::where('is_remain_today', 1)->update(['is_remain_today' => 0]);
|
|
|
|
Cache::set('clear_remain_today_' . date('Y-m-d'), 1, 24 * 3600);
|
|
|
|
}
|
|
|
|
|
|
|
|
$error = 0;
|
|
|
|
$api = new QuanqiusouApi();
|
|
|
|
//有排名api编号的项目
|
|
...
|
...
|
@@ -102,7 +91,6 @@ class RankData extends BaseCommands |
|
|
|
if(!$deploy_optimizes){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
$api = new QuanqiusouApi();
|
|
|
|
$ai_nos = $api->getWebApiNo();
|
|
|
|
if($ai_nos){
|
...
|
...
|
|