fix: 修复bug
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
<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
-1
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8041a14d093b7a247ba9da67450fc1a6
|
||||
guid: 31634554e5dfe40e7afe2944f58fdd6d
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e90382a4df24e4a97809defec553d4d4
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+18932
-18950
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
//#import <Photos/Photos.h>
|
||||
#import <Photos/Photos.h>
|
||||
extern "C" {
|
||||
#import "UnityAppController.h"
|
||||
#import "iOSBridgePlugin.h"
|
||||
@@ -11,50 +11,50 @@ extern "C" {
|
||||
// 保存视频到相册并设置自定义创建日期
|
||||
void SaveVideoWithCustomDate(const char* videoPathCStr)
|
||||
{
|
||||
// @autoreleasepool {
|
||||
// NSString *videoPath = [NSString stringWithUTF8String:videoPathCStr];
|
||||
// NSURL *videoURL = [NSURL fileURLWithPath:videoPath];
|
||||
//
|
||||
// // 使用当前时间作为创建时间
|
||||
// NSDate *currentDate = [NSDate date];
|
||||
//
|
||||
// [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
// PHAssetChangeRequest *request = [PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL:videoURL];
|
||||
// request.creationDate = currentDate;
|
||||
// } completionHandler:^(BOOL success, NSError * _Nullable error) {
|
||||
// if (success) {
|
||||
// UnitySendMessage("UnityManager", "Showtips","save_successed");
|
||||
// UnitySendMessage("UnityManager", "CloseDownloadUI", "");
|
||||
// } else {
|
||||
// //NSLog(@"❌ 保存失败:%@", error);
|
||||
// }
|
||||
// }];
|
||||
// }
|
||||
@autoreleasepool {
|
||||
NSString *videoPath = [NSString stringWithUTF8String:videoPathCStr];
|
||||
NSURL *videoURL = [NSURL fileURLWithPath:videoPath];
|
||||
|
||||
// 使用当前时间作为创建时间
|
||||
NSDate *currentDate = [NSDate date];
|
||||
|
||||
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
PHAssetChangeRequest *request = [PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL:videoURL];
|
||||
request.creationDate = currentDate;
|
||||
} completionHandler:^(BOOL success, NSError * _Nullable error) {
|
||||
if (success) {
|
||||
UnitySendMessage("UnityManager", "Showtips","save_successed");
|
||||
UnitySendMessage("UnityManager", "CloseDownloadUI", "");
|
||||
} else {
|
||||
//NSLog(@"❌ 保存失败:%@", error);
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
// 保存图片到相册并设置自定义创建日期
|
||||
void SaveImageWithCustomDate(const char* imagePathCStr)
|
||||
{
|
||||
// @autoreleasepool {
|
||||
// NSString *imagePath = [NSString stringWithUTF8String:imagePathCStr];
|
||||
// NSURL *imageURL = [NSURL fileURLWithPath:imagePath];
|
||||
//
|
||||
// // 使用当前时间作为创建时间
|
||||
// NSDate *currentDate = [NSDate date];
|
||||
//
|
||||
// [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
// PHAssetChangeRequest *request = [PHAssetChangeRequest creationRequestForAssetFromImageAtFileURL:imageURL];
|
||||
// request.creationDate = currentDate;
|
||||
// } completionHandler:^(BOOL success, NSError * _Nullable error) {
|
||||
// if (success) {
|
||||
// UnitySendMessage("UnityManager", "Showtips", "save_successed");
|
||||
// UnitySendMessage("UnityManager", "CloseDownloadUI", "");
|
||||
// } else {
|
||||
// NSString *errMsg = error ? [error localizedDescription] : @"Unknown error";
|
||||
// UnitySendMessage("UnityManager", "Showtips", [errMsg UTF8String]);
|
||||
// }
|
||||
// }];
|
||||
// }
|
||||
@autoreleasepool {
|
||||
NSString *imagePath = [NSString stringWithUTF8String:imagePathCStr];
|
||||
NSURL *imageURL = [NSURL fileURLWithPath:imagePath];
|
||||
|
||||
// 使用当前时间作为创建时间
|
||||
NSDate *currentDate = [NSDate date];
|
||||
|
||||
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
PHAssetChangeRequest *request = [PHAssetChangeRequest creationRequestForAssetFromImageAtFileURL:imageURL];
|
||||
request.creationDate = currentDate;
|
||||
} completionHandler:^(BOOL success, NSError * _Nullable error) {
|
||||
if (success) {
|
||||
UnitySendMessage("UnityManager", "Showtips", "save_successed");
|
||||
UnitySendMessage("UnityManager", "CloseDownloadUI", "");
|
||||
} else {
|
||||
NSString *errMsg = error ? [error localizedDescription] : @"Unknown error";
|
||||
UnitySendMessage("UnityManager", "Showtips", [errMsg UTF8String]);
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
void TrackProduct(const char *eventName, const char *dictionaryJson)
|
||||
{
|
||||
@@ -137,3 +137,5 @@ void SetBtn(int left, int top, int right, int bottom){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -14,5 +14,5 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
showNetworkLog: 1
|
||||
debugHost: api.jsoncompare.online
|
||||
releaseHost: tronwingame.fun
|
||||
releaseHost: api.tronwin.top
|
||||
connectionMode: 0
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,7 +11,7 @@ public class LoveLegendRoot : MonoBehaviour
|
||||
public void Awake()
|
||||
{
|
||||
#if !UNITY_EDITOR || GAME_RELEASE
|
||||
GameObject.Find("IngameDebugConsole").SetActive(true);
|
||||
GameObject.Find("IngameDebugConsole").SetActive(false);
|
||||
#endif
|
||||
MaxADKit.Init();
|
||||
// SGModule.Net.NetworkKit.Instance.InitData(NetworkManager.identifier,true);
|
||||
|
||||
@@ -84,8 +84,10 @@ namespace RedHotRoast
|
||||
|
||||
AppDispatcher.Instance.Dispatch(AppMsg.AppManagerRegister);
|
||||
AppDispatcher.Instance.Dispatch(AppMsg.InitUIMgr);
|
||||
#if UNITY_EDITOR
|
||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
||||
|
||||
#endif
|
||||
|
||||
AppDispatcher.Instance.AddListener(AppMsg.LoginInit, OnLoadingComplete);
|
||||
|
||||
// PreferencesMgr.Instance.InitPreferences();
|
||||
|
||||
@@ -486,7 +486,8 @@ namespace RedHotRoast
|
||||
ui.btn_vip.SetClick(onClickVip);
|
||||
|
||||
WebviewManager.Instance.SetDarkThough(true);
|
||||
|
||||
|
||||
ui.btn_wv.visible = GameHelper.IsGiftSwitch();
|
||||
ui.btn_wv.SetClick(() =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
|
||||
|
||||
@@ -442,6 +442,7 @@ namespace RedHotRoast
|
||||
ui.btn_back.SetClick(BackFunc);
|
||||
ui.btn_refresh.SetClick(RefreshFunc);
|
||||
|
||||
ui.btn_wv.visible = GameHelper.IsGiftSwitch();
|
||||
|
||||
ui.btn_wv.SetClick(() =>
|
||||
{
|
||||
|
||||
@@ -252,7 +252,8 @@ namespace RedHotRoast
|
||||
item.discount.visible = !GameHelper.IsAdModelOfPay() && list[index].Discount_rate > 0;
|
||||
|
||||
if (list[index].Discount_rate != 0) item.off_text.text = list[index].Discount_rate + "%";
|
||||
|
||||
|
||||
Debug.Log($"GameHelper.IsAdModelOfPay()====={GameHelper.IsAdModelOfPay()}");
|
||||
if (time + list[index].receive_CD < GameHelper.GetNowTime())
|
||||
{
|
||||
item.btn_buy.can_buy.selectedIndex = 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace RedHotRoast
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetworkErrorTipsUI_Open);
|
||||
LoginKit.Instance.LoginRequest(SuperApplication.Instance.attribution, NetworkManager.haveSimCard, (isSuccess, loginData) =>
|
||||
{
|
||||
Debug.Log($"登陆结果: {isSuccess}");
|
||||
Debug.Log($"登陆结果: {isSuccess} {loginData.Enwp}");
|
||||
TrackKit.TrackLoginFunnel(LoginFunnelEventType.LoginRecv, isSuccess ? "success" : "fail");
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetworkErrorTipsUI_Close);
|
||||
|
||||
@@ -141,7 +141,7 @@ PlayerSettings:
|
||||
loadStoreDebugModeEnabled: 0
|
||||
visionOSBundleVersion: 1.0
|
||||
tvOSBundleVersion: 1.0
|
||||
bundleVersion: 1.0.1
|
||||
bundleVersion: 1.0.2
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
@@ -168,7 +168,7 @@ PlayerSettings:
|
||||
buildNumber:
|
||||
Standalone: 0
|
||||
VisionOS: 0
|
||||
iPhone: 2
|
||||
iPhone: 3
|
||||
tvOS: 0
|
||||
overrideDefaultApplicationIdentifier: 1
|
||||
AndroidBundleVersionCode: 1
|
||||
@@ -898,7 +898,7 @@ PlayerSettings:
|
||||
WebGL: UNITY_VISUAL_SCRIPTING;ES3_TMPRO;ES3_UGUI
|
||||
Windows Store Apps: UNITY_VISUAL_SCRIPTING;ES3_TMPRO;ES3_UGUI
|
||||
XboxOne: UNITY_VISUAL_SCRIPTING;ES3_TMPRO;ES3_UGUI
|
||||
iPhone: MAX;GAME_RELEASE1;UNITY_VISUAL_SCRIPTING;ES3_TMPRO;ES3_UGUI;USE_ADDRESSABLES;UNITY_IAP;UNITY_PURCHASING
|
||||
iPhone: MAX;GAME_RELEASE;UNITY_VISUAL_SCRIPTING;ES3_TMPRO;ES3_UGUI;USE_ADDRESSABLES;UNITY_IAP;UNITY_PURCHASING
|
||||
tvOS: UNITY_VISUAL_SCRIPTING;ES3_TMPRO;ES3_UGUI
|
||||
additionalCompilerArguments: {}
|
||||
platformArchitecture: {}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user