|
...
|
...
|
@@ -15,6 +15,7 @@ use App\Models\Channel\Channel; |
|
|
|
use App\Models\Channel\User;
|
|
|
|
use App\Models\Channel\Zone;
|
|
|
|
use App\Models\Com\City;
|
|
|
|
use App\Models\Com\NoticeLog;
|
|
|
|
use App\Models\Com\UpdateLog;
|
|
|
|
use App\Models\Devops\ServerConfig;
|
|
|
|
use App\Models\Devops\ServersIp;
|
|
...
|
...
|
@@ -1215,4 +1216,20 @@ class ProjectController extends BaseController |
|
|
|
$this->response('success', Code::SUCCESS, $lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :生成关键词图表数据
|
|
|
|
* @name :generateCountCharts
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/6/10 10:51
|
|
|
|
*/
|
|
|
|
public function generateCountCharts(){
|
|
|
|
$noticeModel = new NoticeLog();
|
|
|
|
$info = $noticeModel->read(['type'=>NoticeLog::TYPE_GENERATE_COUNT_CHARTS,'status'=>0,'data'=>['like','%"'.$this->param['project_id'].'"%']]);
|
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前数据在生成中');
|
|
|
|
}
|
|
|
|
NoticeLog::createLog(NoticeLog::TYPE_GENERATE_COUNT_CHARTS, ['project_id' => $this->user['project_id']]);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|