【m】修改获取服务器版本号
This commit is contained in:
@@ -373,7 +373,14 @@ namespace Stary.Evo.Editor
|
|||||||
|
|
||||||
public static async Task UpdateFileDataResDomain(BuildAssetDataSetting setting, string zipFilePath)
|
public static async Task UpdateFileDataResDomain(BuildAssetDataSetting setting, string zipFilePath)
|
||||||
{
|
{
|
||||||
string ip = PlayerPrefs.GetString("LoginIp");
|
//初始化读取资源配置表
|
||||||
|
HotfixMainResDomain hotfixMainResDomain = Resources.Load<HotfixMainResDomain>("HotfixMainResDomain");
|
||||||
|
if (hotfixMainResDomain == null)
|
||||||
|
{
|
||||||
|
Debug.LogError($"UnityEvo:读取资源配置表失败【HotfixMainResDomain】...表不存在");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var ip = hotfixMainResDomain.hotfixMainResDomainEntity.ipconfig;
|
||||||
var messageEntity = await WebRequestSystem.PostFile(ip + "/FileLoad/UpLoadFile", new[] { zipFilePath });
|
var messageEntity = await WebRequestSystem.PostFile(ip + "/FileLoad/UpLoadFile", new[] { zipFilePath });
|
||||||
EditorUtility.DisplayProgressBar("提示", $"开始上传{setting.packageName}(上传zip文件)", 0.5f);
|
EditorUtility.DisplayProgressBar("提示", $"开始上传{setting.packageName}(上传zip文件)", 0.5f);
|
||||||
if (messageEntity.code == 200)
|
if (messageEntity.code == 200)
|
||||||
|
|||||||
@@ -67,7 +67,14 @@ namespace Stary.Evo.Editor
|
|||||||
$"Assets/Domain/{oneKeyBUildEntity.DomainName}/Conf/BuildAssetDataSetting.asset");
|
$"Assets/Domain/{oneKeyBUildEntity.DomainName}/Conf/BuildAssetDataSetting.asset");
|
||||||
if (buildAssetDataSetting != null)
|
if (buildAssetDataSetting != null)
|
||||||
{
|
{
|
||||||
string ip = PlayerPrefs.GetString("LoginIp");
|
//初始化读取资源配置表
|
||||||
|
HotfixMainResDomain hotfixMainResDomain = Resources.Load<HotfixMainResDomain>("HotfixMainResDomain");
|
||||||
|
if (hotfixMainResDomain == null)
|
||||||
|
{
|
||||||
|
Debug.LogError($"UnityEvo:读取资源配置表失败【HotfixMainResDomain】...表不存在");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
var ip = hotfixMainResDomain.hotfixMainResDomainEntity.ipconfig;
|
||||||
string url = $"{ip}/ResDomain/GetResDomainByDomain";
|
string url = $"{ip}/ResDomain/GetResDomainByDomain";
|
||||||
var resDmainRequst = new ResDmainRequst()
|
var resDmainRequst = new ResDmainRequst()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.staryevo.main",
|
"name": "com.staryevo.main",
|
||||||
"version": "1.3.1",
|
"version": "1.3.2",
|
||||||
"displayName": "00.StaryEvo",
|
"displayName": "00.StaryEvo",
|
||||||
"description": "This is an Framework package(后台服务器版本,端口9527)",
|
"description": "This is an Framework package(后台服务器版本,端口9527)",
|
||||||
"unity": "2021.3",
|
"unity": "2021.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user