【打包】修改打包逻辑
parent
7c15452acb
commit
2555e390d6
|
|
@ -174,7 +174,7 @@ internal class BatchBuild
|
|||
// 缓存打包时的文件
|
||||
_CacheBuildFiles(info);
|
||||
|
||||
PostLoginKey(info.version); // 上传Aot loginKey
|
||||
PostLoginKey(info); // 上传Aot loginKey
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
@ -374,8 +374,9 @@ internal class BatchBuild
|
|||
/// <summary>
|
||||
/// 上传登录key
|
||||
/// </summary>
|
||||
public static void PostLoginKey(string version)
|
||||
public static void PostLoginKey(UpdateLocalInfo info)
|
||||
{
|
||||
var version = info.version;
|
||||
string loginKey = HashUtils.MD5(version);
|
||||
|
||||
// 服务端签名原文包含 platform="",按字母升序排列
|
||||
|
|
@ -385,7 +386,7 @@ internal class BatchBuild
|
|||
{ "platform", "" },
|
||||
{ "tag", loginKey },
|
||||
{ "timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString() }
|
||||
});
|
||||
}, info.httpKey, info.httpAccessKey);
|
||||
|
||||
LoginKeyData loginKeyData = new()
|
||||
{
|
||||
|
|
@ -395,16 +396,16 @@ internal class BatchBuild
|
|||
|
||||
try
|
||||
{
|
||||
if (PackDataInst.Inst.localInfo.isDev)
|
||||
if (info.isDev)
|
||||
{
|
||||
if (PackDataInst.Inst.localInfo.isOversea)
|
||||
if (info.isOversea)
|
||||
HttpHelper.PostAsync($"{Oversea_Release_PostUrl}version", loginKeyData, headData).Forget(); // 暂时海外dev也使用Release
|
||||
else
|
||||
HttpHelper.PostAsync($"{Dev_PostUrl}version", loginKeyData, headData).Forget();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (PackDataInst.Inst.localInfo.isOversea)
|
||||
if (info.isOversea)
|
||||
HttpHelper.PostAsync($"{Oversea_Release_PostUrl}version", loginKeyData, headData).Forget();
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue