zqwang 1 год назад
Родитель
Сommit
55bb83340c

+ 1 - 0
modules/Channel/Http/Controllers/WechatOpenPlatformController.php

@@ -123,6 +123,7 @@ class WechatOpenPlatformController extends CatchController
     }
 
     public function infoCommand(Request $request, $authorizer_appid, $component_appid) {
+        myLog("wx-xiaoxi")->info(['authorizer_appid' => $authorizer_appid,'component_appid' => $component_appid,'param' => $request->all()]);
         $componentInfo = WechatOpenPlatformService::getComponentInfoByAppid($component_appid);
         $app = WechatOpenPlatformService::buildApplication($componentInfo);
 

+ 21 - 0
modules/WechatPlatform/Http/Controllers/CommonController.php

@@ -0,0 +1,21 @@
+<?php
+/**
+ *
+ * @file:CommonController.php
+ * @Date: 2023/7/6
+ * @Time: 18:05
+ */
+
+
+namespace Modules\WechatPlatform\Http\Controllers;
+
+use Catch\Base\CatchController;
+
+class CommonController extends CatchController
+{
+
+    public function getPageUrl()
+    {
+
+    }
+}

+ 3 - 1
modules/WechatPlatform/Http/Controllers/SettingController.php

@@ -9,7 +9,9 @@
 
 namespace Modules\WechatPlatform\Http\Controllers;
 
-class SettingController
+use Catch\Base\CatchController;
+
+class SettingController extends CatchController
 {
 
 }

+ 18 - 0
modules/WechatPlatform/Http/Requests/PlayPageUrlRequest.php

@@ -0,0 +1,18 @@
+<?php
+/**
+ *
+ * @file:PlayPageUrlRequest.php
+ * @Date: 2023/7/6
+ * @Time: 18:18
+ */
+
+
+namespace Modules\WechatPlatform\Http\Requests;
+
+use Illuminate\Foundation\Http\FormRequest;
+
+class PlayPageUrlRequest extends FormRequest
+{
+    
+
+}

+ 13 - 0
modules/WechatPlatform/routes/route.php

@@ -1,6 +1,7 @@
 <?php
 
 use Illuminate\Support\Facades\Route;
+use Modules\WechatPlatform\Http\Controllers\CommonController;
 use Modules\WechatPlatform\Http\KFMessageController;
 use Modules\WechatPlatform\Http\Controllers\WechatKeywordsController;
 
@@ -27,4 +28,16 @@ Route::prefix('wechatPlatform')->group(function(){
         // 关键字公账号配置选择项
         Route::any("auth_list/{id}",[WechatKeywordsController::class,'authList']);
     });
+
+    // 公共部分
+    Route::prefix('common')->group(function (){
+        // 获取小程序页面链接
+        Route::post('get_page',[CommonController::class,'getPageUrl'])->withoutMiddleware(config('catch.route.middlewares'));
+    });
+
+    // 设置
+    Route::prefix('setting')->group(function (){
+
+    });
+
 });