|
@@ -1,8 +1,10 @@
|
|
|
<?php
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
+
|
|
|
+use Modules\WechatPlatform\Http\Controllers\KFMessageController;
|
|
|
+use Modules\WechatPlatform\Http\Controllers\WechatAuthorizationInfoController;
|
|
|
use Modules\WechatPlatform\Http\Controllers\CommonController;
|
|
|
-use Modules\WechatPlatform\Http\KFMessageController;
|
|
|
use Modules\WechatPlatform\Http\Controllers\WechatKeywordsController;
|
|
|
|
|
|
Route::prefix('wechatPlatform')->group(function(){
|
|
@@ -15,25 +17,31 @@ Route::prefix('wechatPlatform')->group(function(){
|
|
|
Route::post('updateGZH', [KFMessageController::class, 'updateGZH']);
|
|
|
});
|
|
|
|
|
|
- // 关键字列表
|
|
|
- Route::prefix('keyword')->group(function () {
|
|
|
- // 列表
|
|
|
- Route::any("list",[WechatKeywordsController::class,'list']);
|
|
|
- // 添加
|
|
|
- Route::post('add',[WechatKeywordsController::class,'add']);
|
|
|
- // 编辑
|
|
|
- Route::post('edit/{id}',[WechatKeywordsController::class,'edit']);
|
|
|
- // 详情
|
|
|
- Route::any('detail/{id}',[WechatKeywordsController::class,'detail']);
|
|
|
- // 删除
|
|
|
- Route::any('del',[WechatKeywordsController::class,'del']);
|
|
|
- // 配置公众号
|
|
|
- Route::post('allocation/{id}',[WechatKeywordsController::class,'allocation']);
|
|
|
-
|
|
|
- // 关键字公账号配置选择项
|
|
|
- Route::any("auth_list/{id}",[WechatKeywordsController::class,'authList']);
|
|
|
- });
|
|
|
|
|
|
+ // 微信公众号设置
|
|
|
+ Route::prefix('officialAccount')->group(function () {
|
|
|
+ //公众号列表
|
|
|
+ Route::get("list",[WechatAuthorizationInfoController::class,'index']);
|
|
|
+
|
|
|
+ // 关键字列表
|
|
|
+ Route::prefix('keyword')->group(function () {
|
|
|
+ // 列表
|
|
|
+ Route::any("list",[WechatKeywordsController::class,'list']);
|
|
|
+ // 添加
|
|
|
+ Route::post('add',[WechatKeywordsController::class,'add']);
|
|
|
+ // 编辑
|
|
|
+ Route::post('edit/{id}',[WechatKeywordsController::class,'edit']);
|
|
|
+ // 详情
|
|
|
+ Route::any('detail/{id}',[WechatKeywordsController::class,'detail']);
|
|
|
+ // 删除
|
|
|
+ Route::any('del',[WechatKeywordsController::class,'del']);
|
|
|
+ // 配置公众号
|
|
|
+ Route::post('allocation/{id}',[WechatKeywordsController::class,'allocation']);
|
|
|
+
|
|
|
+ // 关键字公账号配置选择项
|
|
|
+ Route::any("auth_list/{id}",[WechatKeywordsController::class,'authList']);
|
|
|
+ });
|
|
|
+ });
|
|
|
// 公共部分
|
|
|
Route::prefix('common')->group(function (){
|
|
|
// 获取小程序页面链接
|