feat(扩展字段): 修正 DGPBClientManager 的实现接口 & 在ClientPowerBoxSharedData添加新字段rqCodeUrl
* 修正 DGPBClientManager 的实现接口为com.r3944realms.dg_lab.api.manager.IDGLabManager * 在ClientPowerBoxSharedData添加新字段rqCodeUrl用于辅助访问二维码Url
This commit is contained in:
parent
67f4513817
commit
fefa14a202
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package com.r3944realms.dg_lab.manager;
|
||||
|
||||
import com.r3944realms.dg_lab.api.manager.IDGLabManager;
|
||||
import com.r3944realms.dg_lab.api.manager.Status;
|
||||
import com.r3944realms.dg_lab.websocket.PowerBoxWSClient;
|
||||
import com.r3944realms.dg_lab.api.websocket.message.Message;
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ public class ClientDLPBHandlerContextWrapper extends AbstractDgLabPowerBoxHandle
|
|||
((ClientPowerBoxSharedData)sharedData).connectionId = data.getClientId();
|
||||
logger.info("收到clientId: {}", ConnectionId());
|
||||
String qrCodeContext = "https://www.dungeon-lab.com/app-download.php#DGLAB-SOCKET#" + ((ClientPowerBoxSharedData)sharedData).getUrl() + ConnectionId();
|
||||
((ClientPowerBoxSharedData) sharedData).rqCodeUrl = qrCodeContext;
|
||||
TryCatch(i -> ((ClientOperation)operation).QrCodeUrlHandler(qrCodeContext));
|
||||
TryCatch(i -> ((ClientOperation)operation).ShowQrCodeHandler());
|
||||
logger.debug("重新生成QrCodeContext: {}",qrCodeContext);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ public class ClientPowerBoxSharedData implements ISharedData {
|
|||
clone.delay = delay;
|
||||
clone.address = address;
|
||||
clone.port = port;
|
||||
clone.rqCodeUrl = rqCodeUrl;
|
||||
return clone;
|
||||
}
|
||||
|
||||
|
|
@ -64,13 +65,16 @@ public class ClientPowerBoxSharedData implements ISharedData {
|
|||
/**
|
||||
* The Follow a strength.
|
||||
*/
|
||||
//跟随AB的软上限
|
||||
//跟随AB的软上限
|
||||
public final boolean followAStrength = false;
|
||||
/**
|
||||
* The Follow b strength.
|
||||
*/
|
||||
public final boolean followBStrength = false;
|
||||
|
||||
/**
|
||||
* 二维码
|
||||
*/
|
||||
public String rqCodeUrl = "";
|
||||
/**
|
||||
* Instantiates a new Client power box shared data.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ org.gradle.configuration-cache=true
|
|||
org.gradle.configuration-cache.problems=warn
|
||||
# ROOT
|
||||
project_name=DgLab
|
||||
project_version=4.2.9.16
|
||||
project_version=4.2.10.17
|
||||
project_group=top.r3944realms.dg_lab
|
||||
|
||||
# API
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
统一用4位版本,对于测试性更新统一在其后加-Beta。
|
||||
修复问题更新为加0.0.0.1,添加/移除新特性加0.0.1.0,小部分重构更新加0.1.0.0,大量重构加1.0.0.0
|
||||
|
||||
2025-09-21-2
|
||||
project_version=4.2.10.17
|
||||
* 修正 DGPBClientManager 的实现接口为com.r3944realms.dg_lab.api.manager.IDGLabManager
|
||||
* 在ClientPowerBoxSharedData添加新字段rqCodeUrl用于辅助访问二维码Url
|
||||
|
||||
2025-09-21-1
|
||||
project_version=4.2.9.16
|
||||
* 添加了SSL支持
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user