17 lines
695 B
PHP
Executable File
17 lines
695 B
PHP
Executable File
<?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');
|