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