feat: 更新二维码和图片访问接口逻辑

主要修改:
1. 在QrProxyController中引入LinkStatusService,通过codeNo查询对应的machineId,优化二维码和图片的获取逻辑。
2. 更新所有相关的图片访问路径,确保使用新的/image/{codeNo}格式。
3. 在GameInterfaceResponse中新增machineId和completedPoints字段,提供更详细的游戏界面数据。
4. 更新SecurityConfig,允许/image/**路径的公开访问。

技术细节:
- 通过优化接口逻辑和数据结构,提升了系统的灵活性和用户体验,同时确保了安全性和可维护性。
This commit is contained in:
zyh
2025-08-28 23:30:58 +08:00
parent 1d72bc4c5a
commit de4700abe6
8 changed files with 91 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description = "游戏界面数据")
public class GameInterfaceResponse {
@Schema(description = "设备编号")
@Schema(description = "链接编号")
private String codeNo;
@Schema(description = "总点数 (quantity * times)")
@@ -41,6 +41,12 @@ public class GameInterfaceResponse {
@Schema(description = "结束赏金图片链接")
private String endRewardUrl;
@Schema(description = "机器编号")
private String machineId;
@Schema(description = "已经完成的点数")
private Integer completedPoints;
public String getCodeNo() {
return codeNo;
}
@@ -128,4 +134,20 @@ public class GameInterfaceResponse {
public void setEndRewardUrl(String endRewardUrl) {
this.endRewardUrl = endRewardUrl;
}
public String getMachineId() {
return machineId;
}
public void setMachineId(String machineId) {
this.machineId = machineId;
}
public Integer getCompletedPoints() {
return completedPoints;
}
public void setCompletedPoints(Integer completedPoints) {
this.completedPoints = completedPoints;
}
}