正在显示
3 个修改的文件
包含
19 行增加
和
0 行删除
| @@ -15,6 +15,7 @@ use App\Models\Channel\Channel; | @@ -15,6 +15,7 @@ use App\Models\Channel\Channel; | ||
| 15 | use App\Models\Channel\User; | 15 | use App\Models\Channel\User; |
| 16 | use App\Models\Channel\Zone; | 16 | use App\Models\Channel\Zone; |
| 17 | use App\Models\Com\City; | 17 | use App\Models\Com\City; |
| 18 | +use App\Models\Com\NoticeLog; | ||
| 18 | use App\Models\Com\UpdateLog; | 19 | use App\Models\Com\UpdateLog; |
| 19 | use App\Models\Devops\ServerConfig; | 20 | use App\Models\Devops\ServerConfig; |
| 20 | use App\Models\Devops\ServersIp; | 21 | use App\Models\Devops\ServersIp; |
| @@ -1215,4 +1216,20 @@ class ProjectController extends BaseController | @@ -1215,4 +1216,20 @@ class ProjectController extends BaseController | ||
| 1215 | $this->response('success', Code::SUCCESS, $lists); | 1216 | $this->response('success', Code::SUCCESS, $lists); |
| 1216 | } | 1217 | } |
| 1217 | 1218 | ||
| 1219 | + /** | ||
| 1220 | + * @remark :生成关键词图表数据 | ||
| 1221 | + * @name :generateCountCharts | ||
| 1222 | + * @author :lyh | ||
| 1223 | + * @method :post | ||
| 1224 | + * @time :2025/6/10 10:51 | ||
| 1225 | + */ | ||
| 1226 | + public function generateCountCharts(){ | ||
| 1227 | + $noticeModel = new NoticeLog(); | ||
| 1228 | + $info = $noticeModel->read(['type'=>NoticeLog::TYPE_GENERATE_COUNT_CHARTS,'status'=>0,'data'=>['like','%"'.$this->param['project_id'].'"%']]); | ||
| 1229 | + if($info !== false){ | ||
| 1230 | + $this->fail('当前数据在生成中'); | ||
| 1231 | + } | ||
| 1232 | + NoticeLog::createLog(NoticeLog::TYPE_GENERATE_COUNT_CHARTS, ['project_id' => $this->user['project_id']]); | ||
| 1233 | + $this->response('success'); | ||
| 1234 | + } | ||
| 1218 | } | 1235 | } |
| @@ -14,6 +14,7 @@ class NoticeLog extends Base | @@ -14,6 +14,7 @@ class NoticeLog extends Base | ||
| 14 | const TYPE_RANK_DATA = 'rank_data'; | 14 | const TYPE_RANK_DATA = 'rank_data'; |
| 15 | const TYPE_INIT_PROJECT = 'init_project'; | 15 | const TYPE_INIT_PROJECT = 'init_project'; |
| 16 | const TYPE_INIT_KEYWORD_COMMON = 'init_keyword_common';//聚合页关键词评论 | 16 | const TYPE_INIT_KEYWORD_COMMON = 'init_keyword_common';//聚合页关键词评论 |
| 17 | + const TYPE_GENERATE_COUNT_CHARTS = 'generate_count_charts';//聚合页关键字图片生成 | ||
| 17 | const TYPE_COPY_PROJECT = 'copy_project'; | 18 | const TYPE_COPY_PROJECT = 'copy_project'; |
| 18 | const TYPE_INIT_KEYWORD = 'init_keyword'; | 19 | const TYPE_INIT_KEYWORD = 'init_keyword'; |
| 19 | const DELETE_PRODUCT_CATEGORY = 'delete_product_category'; | 20 | const DELETE_PRODUCT_CATEGORY = 'delete_product_category'; |
| @@ -209,6 +209,7 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -209,6 +209,7 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 209 | Route::any('/getKeywordPrefix', [Aside\Project\KeywordPrefixController::class, 'getKeywordPrefix'])->name('admin.keyword_getKeywordPrefix'); | 209 | Route::any('/getKeywordPrefix', [Aside\Project\KeywordPrefixController::class, 'getKeywordPrefix'])->name('admin.keyword_getKeywordPrefix'); |
| 210 | Route::any('/save', [Aside\Project\KeywordPrefixController::class, 'save'])->name('admin.keyword_save'); | 210 | Route::any('/save', [Aside\Project\KeywordPrefixController::class, 'save'])->name('admin.keyword_save'); |
| 211 | Route::any('/del', [Aside\Project\KeywordPrefixController::class, 'del'])->name('admin.keyword_del'); | 211 | Route::any('/del', [Aside\Project\KeywordPrefixController::class, 'del'])->name('admin.keyword_del'); |
| 212 | + Route::any('/generateCountCharts', [Aside\Project\ProjectController::class, 'generateCountCharts'])->name('admin.keyword_generateCountCharts'); | ||
| 212 | }); | 213 | }); |
| 213 | //企业资料库 | 214 | //企业资料库 |
| 214 | Route::prefix('enterprise_product')->group(function () { | 215 | Route::prefix('enterprise_product')->group(function () { |
-
请 注册 或 登录 后发表评论