Files
xuetang/server/app/api/route/app.php
T
2026-09-09 14:47:14 +08:00

22 lines
956 B
PHP

<?php
declare(strict_types=1);
use think\facade\Route;
// 多应用下「api」应用的路由文件;URL 形如 /api/qywx/...,此处规则不含应用前缀 api。
// @see https://doc.thinkphp.cn/v8_0/multi_app_model.html
// 企业微信「客户联系」事件回调:GET 验签(echostr)、POST 收事件
Route::rule('qywx/external-contact/notify', 'QywxExternalContactCallback/notify', 'GET|POST');
Route::post('ej-pharmacy/webhook', 'EjPharmacyCallback/webhook');
// 企业微信内部应用推广助手:公开 JS 与服务端随机分流。
Route::get('qywx-promotion/js/:key', 'QywxPromotionPublic/script');
Route::get('qywx-promotion/go/:key', 'QywxPromotionPublic/redirect');
// 唐侦探独立章节存档:使用统一 token,与控糖消消乐周榜隔离。
Route::get('tang/catalog', 'TangDetective/catalog');
Route::get('tang/progress', 'TangDetective/progress');
Route::post('tang/saveProgress', 'TangDetective/saveProgress');