tp/app/admin/route/routes/sms.php
2026-04-01 10:12:37 +08:00

34 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use think\facade\Route;
// 短信管理路由
Route::group('sms', function () {
// 获取短信网关配置
Route::get('info', 'app\\admin\\controller\\System\\SmsController@getSmsInfo');
// 编辑短信网关配置
Route::post('editinfo', 'app\\admin\\controller\\System\\SmsController@editSmsInfo');
// 发送测试短信(入队任务)
Route::post('sendtest', 'app\\admin\\controller\\System\\SmsController@sendTestSms');
// Android 网关轮询待发送任务
Route::post('gateway/poll', 'app\\admin\\controller\\System\\SmsController@gatewayPoll');
// 兼容:如果网关端只请求 poll不带 gateway
Route::post('poll', 'app\\admin\\controller\\System\\SmsController@gatewayPoll');
Route::get('poll', 'app\\admin\\controller\\System\\SmsController@gatewayPoll');
// Android 网关上报短信内容(解析验证码)
Route::post('gateway/report', 'app\\admin\\controller\\System\\SmsController@gatewayReport');
// 兼容:如果网关端只请求 report不带 gateway
Route::post('report', 'app\\admin\\controller\\System\\SmsController@gatewayReport');
// 管理员:短信任务列表(租户隔离)
Route::get('taskList', 'app\\admin\\controller\\System\\SmsController@getSmsTaskList');
// 管理员:编辑短信任务(租户隔离)
Route::post('taskEdit/:id', 'app\\admin\\controller\\System\\SmsController@editSmsTask');
});