Compare commits

...

2 Commits

Author SHA1 Message Date
shenjianxing
7761769752 Merge branch 'NewMaster' into LouDi_Quan 2025-04-23 14:01:50 +08:00
shenjianxing
00b308544f 修改逻辑 2025-04-23 14:00:54 +08:00
2 changed files with 1 additions and 9 deletions

View File

@ -40,11 +40,6 @@ public class DateManager : MonoBehaviour
try
{
string datas = DecryptFileReader.ReadAndDecryptData("Timer.txt");
if (string.IsNullOrEmpty(datas))
{
updateTimer?.Invoke();
return;
}
EndTimer = datas.Split('|')[0];
RecordData = datas.Split('|')[1];
//第一次获取获取系统时间

View File

@ -11,10 +11,7 @@ public class DecryptFileReader
public static string ReadAndDecryptData(string filePath)
{
string fullPath = Path.Combine(Application.streamingAssetsPath, filePath);
if (File.Exists(fullPath) == false)
{
return "";
}
if (File.Exists(filePath)) return "";
// 读取加密文件
byte[] encryptedData = File.ReadAllBytes(fullPath);