From 63db23df2d06a82f3d191339c3376f8fa35070b8 Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Tue, 28 Apr 2026 11:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=96=B0=E5=A2=9E=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=B8=B8=E6=88=8F=E8=BF=9E=E6=8E=A5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/locales/langs/en/dice/player.json | 5 +- .../src/locales/langs/zh/dice/player.json | 5 +- .../src/views/plugin/dice/api/player/index.ts | 10 ++++ .../views/plugin/dice/player/index/index.vue | 31 +++++++++- .../player/DicePlayerController.php | 58 +++++++++++++++++++ ...ce_player_add_get_game_link_permission.sql | 28 +++++++++ server/plugin/saiadmin/config/route.php | 1 + 7 files changed, 134 insertions(+), 4 deletions(-) create mode 100644 server/db/dice_player_add_get_game_link_permission.sql diff --git a/saiadmin-artd/src/locales/langs/en/dice/player.json b/saiadmin-artd/src/locales/langs/en/dice/player.json index e3bcb88..6636305 100644 --- a/saiadmin-artd/src/locales/langs/en/dice/player.json +++ b/saiadmin-artd/src/locales/langs/en/dice/player.json @@ -76,6 +76,9 @@ "paidDrawCount": "Paid Draw Count", "freeDrawCount": "Free Draw Count", "createTime": "Create Time", - "updateTime": "Update Time" + "updateTime": "Update Time", + "getGameLink": "Get Game Link", + "getGameLinkSuccess": "Game link copied", + "getGameLinkFail": "Failed to get game link" } } diff --git a/saiadmin-artd/src/locales/langs/zh/dice/player.json b/saiadmin-artd/src/locales/langs/zh/dice/player.json index 2996d61..460de04 100644 --- a/saiadmin-artd/src/locales/langs/zh/dice/player.json +++ b/saiadmin-artd/src/locales/langs/zh/dice/player.json @@ -76,6 +76,9 @@ "paidDrawCount": "购买抽奖次数", "freeDrawCount": "赠送抽奖次数", "createTime": "创建时间", - "updateTime": "更新时间" + "updateTime": "更新时间", + "getGameLink": "获取游戏链接", + "getGameLinkSuccess": "游戏链接已复制", + "getGameLinkFail": "获取游戏链接失败" } } 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 d419d85..e7118b8 100644 --- a/saiadmin-artd/src/views/plugin/dice/api/player/index.ts +++ b/saiadmin-artd/src/views/plugin/dice/api/player/index.ts @@ -73,6 +73,16 @@ export default { }) }, + /** + * 获取玩家游戏链接 + */ + getGameUrl(params: { id: number | string; lang?: 'zh' | 'en' }) { + return request.get({ + url: '/core/dice/player/DicePlayer/getGameUrl', + params + }) + }, + /** * 获取彩金池配置选项(DiceLotteryPoolConfig.id、name),供 lottery_config_id 下拉使用 * @returns [ { id, name } ] diff --git a/saiadmin-artd/src/views/plugin/dice/player/index/index.vue b/saiadmin-artd/src/views/plugin/dice/player/index/index.vue index cfcbbcd..5f82830 100644 --- a/saiadmin-artd/src/views/plugin/dice/player/index/index.vue +++ b/saiadmin-artd/src/views/plugin/dice/player/index/index.vue @@ -64,7 +64,14 @@