FastMovieAI 二开基线 v1.0 (完整源码)

This commit is contained in:
李建琦
2026-08-26 18:41:02 +08:00
parent fad7690c0c
commit d54584f70d
888 changed files with 105571 additions and 1 deletions
@@ -0,0 +1,32 @@
<?php
namespace plugin\control\app\controller;
use app\expose\helper\Config;
use app\expose\utils\wechat\OfficialAccount;
use support\Log;
use support\Request;
class WechatOfficialAccountController
{
public function message(Request $request, $channels_uid)
{
$OfficialAccount = new OfficialAccount();
$config = new Config('wechat_official_account', 'control', $channels_uid);
if (!$config->state) {
return 'wechat official account is not enabled';
}
try {
$OfficialAccount->checkSignature($request, $config);
if ($request->method() === 'GET') {
return $request->get('echostr');
}
} catch (\Throwable $th) {
if ($request->method() === 'GET') {
return $th->getMessage();
} else {
}
}
return $OfficialAccount->handle($request, $config);
}
}