fix:1、修复bug
@@ -1,15 +0,0 @@
|
||||
<linker>
|
||||
<assembly fullname="Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
|
||||
<type fullname="UnityEngine.AddressableAssets.Addressables" preserve="all" />
|
||||
</assembly>
|
||||
<assembly fullname="Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.SceneProvider" preserve="all" />
|
||||
</assembly>
|
||||
<assembly fullname="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<type fullname="UnityEngine.TextAsset" preserve="all" />
|
||||
</assembly>
|
||||
</linker>
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b31a65d8d8c7d4000ac30d2d9ac5c21f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -20,8 +20,8 @@ namespace FGUI.LG_live
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
list_ = (GList)GetChildAt(1);
|
||||
btn_close = (GButton)GetChildAt(2);
|
||||
list_ = (GList)GetChildAt(2);
|
||||
btn_close = (GButton)GetChildAt(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,9 +25,9 @@ namespace FGUI.ZM_Pass_14
|
||||
|
||||
type = GetControllerAt(0);
|
||||
state = GetControllerAt(1);
|
||||
item_loader = (GLoader)GetChildAt(3);
|
||||
number_text = (GTextField)GetChildAt(4);
|
||||
btn_claim = (GButton)GetChildAt(5);
|
||||
item_loader = (GLoader)GetChildAt(2);
|
||||
number_text = (GTextField)GetChildAt(3);
|
||||
btn_claim = (GButton)GetChildAt(4);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -216,27 +216,27 @@ public class TextureHelper
|
||||
public static string getResPath()
|
||||
{
|
||||
// 删除旧资源
|
||||
if (!DataMgr.curResVersion.Value.IsNullOrWhiteSpace() && DataMgr.curResVersion.Value != ConfigSystem.GetCommonConf().ResVersion)
|
||||
if (!DataMgr.curResVersion.Value.IsNullOrWhiteSpace() && DataMgr.curResVersion.Value != ConfigSystem.GetConfigResVersion())
|
||||
{
|
||||
var oldFolder = Path.Combine(Application.persistentDataPath, DataMgr.curResVersion.Value);
|
||||
if (Directory.Exists(oldFolder))
|
||||
{
|
||||
Directory.Delete(oldFolder, true);
|
||||
}
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetCommonConf().ResVersion;
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetConfigResVersion();
|
||||
}
|
||||
else if (DataMgr.curResVersion.Value.IsNullOrWhiteSpace())
|
||||
{
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetCommonConf().ResVersion;
|
||||
DataMgr.curResVersion.Value = ConfigSystem.GetConfigResVersion();
|
||||
}
|
||||
|
||||
if (ConfigSystem.GetCommonConf().ResVersion.IsNullOrWhiteSpace())
|
||||
if (ConfigSystem.GetConfigResVersion().IsNullOrWhiteSpace())
|
||||
{
|
||||
Debug.LogError("获取资源路径失败");
|
||||
return Application.persistentDataPath;
|
||||
}
|
||||
|
||||
string curFolder = Path.Combine(Application.persistentDataPath, ConfigSystem.GetCommonConf().ResVersion);
|
||||
string curFolder = Path.Combine(Application.persistentDataPath, ConfigSystem.GetConfigResVersion());
|
||||
return curFolder;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ public class TextureHelper
|
||||
var localPath = Path.Combine(getResPath(), localFolder, fileName + ".jpg");
|
||||
if (File.Exists(localPath))
|
||||
{
|
||||
Debug.Log($"[SetImgLoader] 本地存在,直接加载 {fileName}");
|
||||
Debug.Log($"[SetImgLoader] 本地存在,直接加载 {fileName} localPath:{localPath}");
|
||||
CrazyAsyKit.StartCoroutine(LoadTexture(fileName, loader, callback, localFolder, isGameBg));
|
||||
return;
|
||||
}
|
||||
@@ -512,6 +512,7 @@ public static IEnumerator LoadTexture(string fileName, GLoader loader, Action<NT
|
||||
|
||||
if (loader != null) loaderRequests.Remove(loader);
|
||||
|
||||
Debug.Log($"[LoadTexture www] www.result {www.result}");
|
||||
if (www.result == UnityWebRequest.Result.Success)
|
||||
{
|
||||
var tex = DownloadHandlerTexture.GetContent(www);
|
||||
@@ -559,7 +560,7 @@ public static IEnumerator LoadTexture(string fileName, GLoader loader, Action<NT
|
||||
public static string GetDecryptedImagePath(string fileName, string localFolder)
|
||||
{
|
||||
string tempPath = Path.Combine(Application.temporaryCachePath, FolderNames.GameCache, localFolder, fileName + "_temp.jpg");
|
||||
// Debug.Log($"获取解密路径: {tempPath}");
|
||||
Debug.Log($"获取解密路径: {tempPath}");
|
||||
|
||||
if (!File.Exists(tempPath))
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 842 KiB After Width: | Height: | Size: 790 KiB |
|
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 445 KiB After Width: | Height: | Size: 445 KiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 21 KiB |
@@ -20,7 +20,7 @@ namespace RedHotRoast
|
||||
uiInfo.layerType = UILayerType.Popup;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = false;
|
||||
uiInfo.isNeedUIMask = true;
|
||||
}
|
||||
|
||||
#region 生命周期
|
||||
|
||||
@@ -184,10 +184,10 @@ namespace RedHotRoast
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ScAlbumLockUI_Open);
|
||||
}
|
||||
else if (unlocklist[random_index] == 2)
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ChatUnlockUI_Open);
|
||||
}
|
||||
// else if (unlocklist[random_index] == 2)
|
||||
// {
|
||||
// uiCtrlDispatcher.Dispatch(UICtrlMsg.ChatUnlockUI_Open);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,15 +196,15 @@ namespace RedHotRoast
|
||||
Setbg();
|
||||
if (GameHelper.IsGiftSwitch() && GameHelper.GetCommonModel().Assitant == 1 && GameHelper.GetLevel() >= GameHelper.GetCommonModel().AssitantPreview)
|
||||
{
|
||||
ui.btn_chat.visible = true;
|
||||
// ui.btn_chat.visible = true;
|
||||
SkeletonAnimation ske_pot = FXManager.Instance.SetFx<SkeletonAnimation>(ui.btn_chat.GetChild("ani_parent") as GGraph, Fx_Type.fx_btnchat, ref closeCallback);
|
||||
ske_pot.state.SetAnimation(0, "animation", true);
|
||||
ui.btn_chat.SetClick(() =>
|
||||
{
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ChatChooseUI_Open);
|
||||
Log.Info("Hall", $"{GameHelper.GetLevel()}/{GameHelper.GetCommonModel().UnlockSecret[1]}/{DataMgr.IsUnlockSecret.Value}");
|
||||
});
|
||||
// ui.btn_chat.SetClick(() =>
|
||||
// {
|
||||
//
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ChatChooseUI_Open);
|
||||
// Log.Info("Hall", $"{GameHelper.GetLevel()}/{GameHelper.GetCommonModel().UnlockSecret[1]}/{DataMgr.IsUnlockSecret.Value}");
|
||||
// });
|
||||
}
|
||||
|
||||
}
|
||||
@@ -522,10 +522,7 @@ namespace RedHotRoast
|
||||
|
||||
ui.btn_live.SetClick(() =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SecretUnlockUI_Open);
|
||||
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LiveUI_Open);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LiveUI_Open);
|
||||
});
|
||||
ui.btn_secret.title = "LV." + GameHelper.GetCommonModel().UnlockSecret[1];
|
||||
ui.btn_secret.SetClick(() =>
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace RedHotRoast {
|
||||
}
|
||||
void setItemUrl(GLoader loader, int urltype) {
|
||||
if (urltype == 0)
|
||||
loader.url = "ui://ZM_Pass_14/bbq_gold02";
|
||||
loader.url = "ui://ZM_Pass_14/bbq_gold01";
|
||||
else if (urltype == 4)
|
||||
loader.url = "ui://ZM_Pass_14/bbq_gold02";
|
||||
else if (urltype == 1)
|
||||
@@ -394,7 +394,7 @@ namespace RedHotRoast {
|
||||
setItemUrl(item.free_item.item_loader, 0);
|
||||
}
|
||||
else {
|
||||
setItemUrl(item.free_item.item_loader, Passportrewards_list[index - 1].Paid_rewards_type);
|
||||
setItemUrl(item.free_item.item_loader, Passportrewards_list[index - 1].Free_rewards_type);
|
||||
}
|
||||
if (Passportrewards_list[index - 1].Paid_rewards_type == 0) {
|
||||
setItemUrl(item.pay_item.item_loader, 4);
|
||||
|
||||
@@ -231,10 +231,10 @@ namespace RedHotRoast
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ScAlbumLockUI_Open);
|
||||
}
|
||||
else if (unlocklist[random_index] == 2)
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ChatUnlockUI_Open);
|
||||
}
|
||||
// else if (unlocklist[random_index] == 2)
|
||||
// {
|
||||
// uiCtrlDispatcher.Dispatch(UICtrlMsg.ChatUnlockUI_Open);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,13 +246,13 @@ namespace RedHotRoast
|
||||
ui.btn_add.t0.Play();
|
||||
SkeletonAnimation ske_pot = FXManager.Instance.SetFx<SkeletonAnimation>((ui.btn_chat as btn_chat).ani_parent, Fx_Type.fx_btnchat, ref closeCallback);
|
||||
ske_pot.state.SetAnimation(0, "animation", true);
|
||||
ui.btn_chat.SetClick(() =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ChatChooseUI_Open);
|
||||
});
|
||||
// ui.btn_chat.SetClick(() =>
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ChatChooseUI_Open);
|
||||
// });
|
||||
if (GameHelper.IsGiftSwitch() && GameHelper.GetCommonModel().Assitant == 1 && GameHelper.GetLevel() >= GameHelper.GetCommonModel().AssitantPreview)
|
||||
{
|
||||
ui.btn_chat.visible = true;
|
||||
// ui.btn_chat.visible = true;
|
||||
}
|
||||
}
|
||||
private void OnBackToHall(object obj = null)
|
||||
|
||||
@@ -131,10 +131,10 @@ namespace RedHotRoast
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LiveUI_Open);
|
||||
}
|
||||
else if (_type == 3)
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ChatChooseUI_Open);
|
||||
}
|
||||
// else if (_type == 3)
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ChatChooseUI_Open);
|
||||
// }
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.UnlockTipsUI_Close);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@ namespace RedHotRoast {
|
||||
|
||||
TrackKit.TrackLoginFunnel(LoginFunnelEventType.LoadFinish); //加载完成打点
|
||||
|
||||
TextureHelper.imgUrl = CdnURL + "/" + (IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1) + "/";
|
||||
LiveVideoManager.videoBaseUrl = CdnURL + "/" + (IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1) + "/";
|
||||
TextureHelper.imgUrl = CdnURL + "/" + GetConfigResVersion() + "/";
|
||||
LiveVideoManager.videoBaseUrl = CdnURL + "/" + GetConfigResVersion() + "/";
|
||||
|
||||
// ParseGameConfig();
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetLoadingUI_Close);
|
||||
@@ -175,7 +175,7 @@ namespace RedHotRoast {
|
||||
|
||||
private static List<T> GetConfigWithOrganicFallback<T, TOrganic>() where T : class
|
||||
{
|
||||
if (IsOrganic())
|
||||
if (!IsOrganic())
|
||||
{
|
||||
var organicConfig = ConfigLoader.Instance.GetConfig<List<TOrganic>>();
|
||||
if (organicConfig != null)
|
||||
@@ -188,6 +188,11 @@ namespace RedHotRoast {
|
||||
return GetConfig<T>();
|
||||
}
|
||||
|
||||
public static string GetConfigResVersion()
|
||||
{
|
||||
return IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1;
|
||||
}
|
||||
|
||||
public static List<Live> GetLiveConfig()
|
||||
{
|
||||
return GetConfigWithOrganicFallback<Live, Live_A>();
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace RedHotRoast
|
||||
// 解密文件:从 src 读出,解密后写到 dst
|
||||
public static void DecryptFile(string src, string dst)
|
||||
{
|
||||
var key = ConfigSystem.IsOrganic() ? ConfigSystem.GetCommonConf().ResVersion : ConfigSystem.GetCommonConf().ResVersion1;
|
||||
var key = ConfigSystem.GetConfigResVersion();
|
||||
var data = File.ReadAllBytes(src);
|
||||
// 检查魔法字节
|
||||
if (data.Length < Magic.Length || !data.Take(Magic.Length).SequenceEqual(Magic)) throw new InvalidDataException("文件未加密或格式错误");
|
||||
@@ -42,7 +42,7 @@ namespace RedHotRoast
|
||||
{
|
||||
var data = File.ReadAllBytes(src);
|
||||
|
||||
var key = ConfigSystem.IsOrganic() ? ConfigSystem.GetCommonConf().ResVersion : ConfigSystem.GetCommonConf().ResVersion1;
|
||||
var key = ConfigSystem.GetConfigResVersion();
|
||||
|
||||
// 检查魔法字节
|
||||
if (data.Length < Magic.Length || !data.Take(Magic.Length).SequenceEqual(Magic))
|
||||
@@ -66,7 +66,7 @@ namespace RedHotRoast
|
||||
|
||||
public static byte[] DecryptVideoToBytes(string src)
|
||||
{
|
||||
var key = ConfigSystem.IsOrganic() ? ConfigSystem.GetCommonConf().ResVersion : ConfigSystem.GetCommonConf().ResVersion1;
|
||||
var key = ConfigSystem.GetConfigResVersion();
|
||||
|
||||
var data = File.ReadAllBytes(src);
|
||||
if (data.Length < Magic.Length || !data.Take(Magic.Length).SequenceEqual(Magic))
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AResources_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F37cc348edc804f4cb176b63962c716e7177200_003Fea_003Ffcad8965_003FResources_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASettingsUI_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F6e53694256e748aaa40387bd9aae590a19400_003F8f_003F4404ef43_003FSettingsUI_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASetupCoroutine_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FLibrary_003FApplication_0020Support_003FJetBrains_003FRider2026_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Feaa93d1ff51f46939e13cc06b5754f3d177000_003F3a_003F4f590d28_003FSetupCoroutine_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASRKZBz0SDK_005FUtility_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F0b1e655068fc4085b9a483f586af9fa01fb200_003F43_003Ff38cb8f3_003FSRKZBz0SDK_005FUtility_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASRKZBz0SDK_005FUtility_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F0b1e655068fc4085b9a483f586af9fa01fb200_003F43_003Ff38cb8f3_003FSRKZBz0SDK_005FUtility_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AUnityWebRequest_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Ff2936d3fea9f4afd965350486955c95ac600_003Fe6_003F2d5c77ec_003FUnityWebRequest_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
|
||||