From 54aa0bd34fd1e7a35084a472aa2721106b6aa070 Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Tue, 10 Mar 2026 17:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84DiceLotteryConfig=E4=B8=BADic?= =?UTF-8?q?eLotteryPoolConfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.ts | 24 +++--- .../src/views/plugin/dice/api/player/index.ts | 2 +- .../index/index.vue | 8 +- .../index/modules/current-pool-dialog.vue | 2 +- .../index/modules/edit-dialog.vue | 2 +- .../index/modules/table-search.vue | 0 .../plugin/dice/play_record/index/index.vue | 2 +- .../views/plugin/dice/player/index/index.vue | 72 ++++++++-------- .../dice/player/index/modules/edit-dialog.vue | 2 +- .../player/index/modules/table-search.vue | 2 +- server/app/api/logic/PlayStartLogic.php | 8 +- server/app/api/service/LotteryService.php | 10 +-- .../DiceLotteryPoolConfigController.php} | 34 ++++---- .../play_record/DicePlayRecordController.php | 6 +- .../player/DicePlayerController.php | 82 +++++++++---------- .../DiceLotteryPoolConfigLogic.php} | 18 ++-- .../DiceLotteryPoolConfig.php} | 4 +- .../dice/model/play_record/DicePlayRecord.php | 14 ++-- server/app/dice/model/player/DicePlayer.php | 14 ++-- .../DiceLotteryPoolConfigValidate.php} | 4 +- .../plugin/saiadmin/basic/AbstractLogic.php | 2 +- server/plugin/saiadmin/config/route.php | 8 +- 22 files changed, 160 insertions(+), 160 deletions(-) rename saiadmin-artd/src/views/plugin/dice/api/{lottery_config => lottery_pool_config}/index.ts (71%) rename saiadmin-artd/src/views/plugin/dice/{lottery_config => lottery_pool_config}/index/index.vue (94%) rename saiadmin-artd/src/views/plugin/dice/{lottery_config => lottery_pool_config}/index/modules/current-pool-dialog.vue (99%) rename saiadmin-artd/src/views/plugin/dice/{lottery_config => lottery_pool_config}/index/modules/edit-dialog.vue (99%) rename saiadmin-artd/src/views/plugin/dice/{lottery_config => lottery_pool_config}/index/modules/table-search.vue (100%) rename server/app/dice/controller/{lottery_config/DiceLotteryConfigController.php => lottery_pool_config/DiceLotteryPoolConfigController.php} (74%) rename server/app/dice/logic/{lottery_config/DiceLotteryConfigLogic.php => lottery_pool_config/DiceLotteryPoolConfigLogic.php} (87%) rename server/app/dice/model/{lottery_config/DiceLotteryConfig.php => lottery_pool_config/DiceLotteryPoolConfig.php} (94%) rename server/app/dice/validate/{lottery_config/DiceLotteryConfigValidate.php => lottery_pool_config/DiceLotteryPoolConfigValidate.php} (93%) diff --git a/saiadmin-artd/src/views/plugin/dice/api/lottery_config/index.ts b/saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts similarity index 71% rename from saiadmin-artd/src/views/plugin/dice/api/lottery_config/index.ts rename to saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts index 2718950..b24ad16 100644 --- a/saiadmin-artd/src/views/plugin/dice/api/lottery_config/index.ts +++ b/saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts @@ -1,28 +1,28 @@ import request from '@/utils/http' /** - * 色子奖池配置 API接口 + * 色子奖池配置 API 接口 */ export default { /** - * 获取数据列表(DiceLotteryConfig) + * 获取数据列表(DiceLotteryPoolConfig) * @param params 搜索参数 * @returns 数据列表 */ list(params: Record) { return request.get({ - url: '/dice/lottery_config/DiceLotteryConfig/index', + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/index', params }) }, /** - * 获取 DiceLotteryConfig 列表数据,仅含 id、name,用于 lottery_config_id 下拉 - * @returns DiceLotteryConfig['id','name'] 列表 + * 获取 DiceLotteryPoolConfig 列表数据,仅含 id、name,用于 lottery_config_id 下拉 + * @returns DiceLotteryPoolConfig['id','name'] 列表 */ async getOptions(): Promise> { const res = await request.get({ - url: '/dice/lottery_config/DiceLotteryConfig/getOptions' + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/getOptions' }) const rows = (res?.data ?? []) as Array<{ id: number; name: string }> return Array.isArray(rows) @@ -37,7 +37,7 @@ export default { */ read(id: number | string) { return request.get({ - url: '/dice/lottery_config/DiceLotteryConfig/read?id=' + id + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/read?id=' + id }) }, @@ -48,7 +48,7 @@ export default { */ save(params: Record) { return request.post({ - url: '/dice/lottery_config/DiceLotteryConfig/save', + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/save', data: params }) }, @@ -60,7 +60,7 @@ export default { */ update(params: Record) { return request.put({ - url: '/dice/lottery_config/DiceLotteryConfig/update', + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/update', data: params }) }, @@ -72,7 +72,7 @@ export default { */ delete(params: Record) { return request.del({ - url: '/dice/lottery_config/DiceLotteryConfig/destroy', + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/destroy', data: params }) }, @@ -92,7 +92,7 @@ export default { t5_weight: number profit_amount: number }>({ - url: '/dice/lottery_config/DiceLotteryConfig/getCurrentPool' + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/getCurrentPool' }) }, @@ -108,7 +108,7 @@ export default { t5_weight?: number }) { return request.post({ - url: '/dice/lottery_config/DiceLotteryConfig/updateCurrentPool', + url: '/dice/lottery_pool_config/DiceLotteryPoolConfig/updateCurrentPool', data: params }) } diff --git a/saiadmin-artd/src/views/plugin/dice/api/player/index.ts b/saiadmin-artd/src/views/plugin/dice/api/player/index.ts index 30556c6..69e34a7 100644 --- a/saiadmin-artd/src/views/plugin/dice/api/player/index.ts +++ b/saiadmin-artd/src/views/plugin/dice/api/player/index.ts @@ -74,7 +74,7 @@ export default { }, /** - * 获取彩金池配置选项(DiceLotteryConfig.id、name),供 lottery_config_id 下拉使用 + * 获取彩金池配置选项(DiceLotteryPoolConfig.id、name),供 lottery_config_id 下拉使用 * @returns [ { id, name } ] */ async getLotteryConfigOptions(): Promise> { diff --git a/saiadmin-artd/src/views/plugin/dice/lottery_config/index/index.vue b/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue similarity index 94% rename from saiadmin-artd/src/views/plugin/dice/lottery_config/index/index.vue rename to saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue index a8771d9..4d1ed7d 100644 --- a/saiadmin-artd/src/views/plugin/dice/lottery_config/index/index.vue +++ b/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue @@ -8,7 +8,7 @@