代码优化

This commit is contained in:
2026-10-09 12:36:39 +08:00
parent 97f679d130
commit 4f2a3379da
9 changed files with 28 additions and 26 deletions
+3 -1
View File
@@ -18,6 +18,8 @@ const (
PacketTypeTestFlight PacketType = 3 // TF包
)
const statAppId int32 = 5
type AppVersionReq struct {
AppId int32 `json:"appId" binding:"required"` // AppID
SysType string `json:"sysType,omitempty"` // 终端类型
@@ -38,7 +40,7 @@ type AppVersionResp struct {
func VersionThreeServer(curVersion, sysType, buildID, packageName string) (resp AppVersionResp, err error) {
req := AppVersionReq{
AppId: 4,
AppId: statAppId,
PktType: PacketTypeEnterprise,
SysType: sysType,
CurVersion: curVersion,