You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
142 lines
3.9 KiB
142 lines
3.9 KiB
/*
|
|
Sog 游戏基础库
|
|
2016 by zouwei
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Runtime.Serialization;
|
|
|
|
using Sog;
|
|
|
|
namespace Version
|
|
{
|
|
//特殊版本,配置这个是为了苹果和google的审核,google一般用不到,主要给苹果用
|
|
//或者版本更新前,正式客户端可以连接正式服务器的版本服务器,但是连接测试游戏服务器
|
|
|
|
public class SpecialVersionCfg
|
|
{
|
|
public string version;
|
|
public string apkversion;
|
|
|
|
//ios或android,不配置表示所有
|
|
public string os;
|
|
|
|
//渠道,不配置表示所有
|
|
public string channel;
|
|
//1表示美国
|
|
public int packageType;
|
|
|
|
//特殊版本对应的特殊url
|
|
public string gateUrl;
|
|
|
|
//特殊版本控制字段,设置成1表示审核
|
|
public int review;
|
|
|
|
//ip,如果配置了这个,则需要客户端的ip匹配这个ip规则
|
|
public string ipRule;
|
|
|
|
//开关 0代表开
|
|
public int disable;
|
|
}
|
|
|
|
public class HotPatchCfg
|
|
{
|
|
public string version;
|
|
public int updateSelf;
|
|
}
|
|
|
|
public class VersionServerConfig
|
|
{
|
|
public bool skipCheckVersion;
|
|
|
|
//最小apk版本,比这还小的要去商店更新整包
|
|
public string minApkVersion;
|
|
|
|
|
|
//配置有效的渠道,缺省是en,android下表示google包
|
|
//public string validChannel;
|
|
|
|
//下载更新包的地址基础部分
|
|
public string downloadUrl;
|
|
//下载更新包的备份地址基础部分
|
|
public string backupDownloadUrl;
|
|
|
|
//版本文件基础目录 /data/xpUpdate/
|
|
public string versionFileBasePath;
|
|
|
|
|
|
//account gate的地址 url:port xg1.itgnetwork.com:7100
|
|
public string[] accountGateUrl;
|
|
|
|
|
|
//补丁名字或整包的名字前缀,不带版本号和后缀
|
|
public string packageName;
|
|
|
|
//服务器维护模式
|
|
public int maintenanceMode;
|
|
//维护中可进的版本
|
|
public string[] maintenanceWhiteVerNum;
|
|
public string[] maintenanceWhiteVerNum_iOS;
|
|
//维护公告
|
|
public string maintenanceNotice;
|
|
|
|
|
|
//特殊版本配置,比如审核,测试
|
|
public SpecialVersionCfg[] specialVersions;
|
|
|
|
// apk商城地址
|
|
public string apkMarketUrl;
|
|
public string apkMarketUrlHuawei; //华为包商店地址
|
|
public string apkMarketUrlIos; //ios包商店地址(台湾app)
|
|
public string apkMarketUrlIosUS; //ios包商店地址(美国app)
|
|
|
|
public HotPatchCfg[] hotPatches;
|
|
|
|
//内测热更包
|
|
public HotPatchCfg[] debugHotPatches;
|
|
|
|
/// 开启登录白名单验证
|
|
public bool enableWhiteIPList;
|
|
|
|
/// 开启登录黑名单验证
|
|
public bool enableBlackIPList;
|
|
|
|
//白名单规则是否包含设备白名单
|
|
public bool enableWhiteDeviceList;
|
|
|
|
/// 开启内测热更包推送
|
|
public bool bOpenDebugHot;
|
|
|
|
//开启内测版本包推送
|
|
public bool bOpenDebugVesion;
|
|
|
|
// 维护时间
|
|
public string maintenanceStartTime;
|
|
public string maintenanceEndTime;
|
|
|
|
public int maintenanceStartTimeInt;
|
|
public int maintenanceEndTimeInt;
|
|
|
|
|
|
//下载更新包的地址基础部分
|
|
public string debugDownloadUrl;
|
|
public int useDebugDownloadUrl;
|
|
|
|
//配置连接到审核服的ip地址数量,超过了告警,防止运营没有通知开发关闭审核跳转到审核服务器配置, 就直接对外发布最新版本
|
|
public int alertIosReviewClientIpCount;
|
|
|
|
public VersionCfg[] versions;
|
|
}
|
|
|
|
public class VersionCfg
|
|
{
|
|
public int cpId;
|
|
public string os;
|
|
public string productId;
|
|
public string url;
|
|
public string version;
|
|
}
|
|
}
|
|
|