[接口v1]对接平台API-新增接口

This commit is contained in:
2026-03-09 14:35:55 +08:00
parent e726fc3041
commit fbf8f9d39d
2 changed files with 224 additions and 2 deletions

View File

@@ -24,6 +24,11 @@ Route::group('/api/v1', function () {
// 平台 v1 接口:需在请求头携带 auth-token
Route::group('/api/v1', function () {
Route::any('/getGameUrl', [app\api\controller\v1\GameController::class, 'getGameUrl']);
Route::any('/getPlayerInfo', [app\api\controller\v1\GameController::class, 'getPlayerInfo']);
Route::any('/getPlayerGameRecord', [app\api\controller\v1\GameController::class, 'getPlayerGameRecord']);
Route::any('/getPlayerWalletRecord', [app\api\controller\v1\GameController::class, 'getPlayerWalletRecord']);
Route::any('/getPlayerTicketRecord', [app\api\controller\v1\GameController::class, 'getPlayerTicketRecord']);
Route::any('/setPlayerWallet', [app\api\controller\v1\GameController::class, 'setPlayerWallet']);
})->middleware([
AuthTokenMiddleware::class,
]);