某些小bug

This commit is contained in:
fatiao 2025-03-23 20:49:42 +08:00
parent 7cfaea5ae1
commit cd81e3e931
11 changed files with 58 additions and 6 deletions

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fbe2f3e4d64d3ac4696ca136a3d6634e
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3996aa53b6ed54241b6096ac850156d8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9186880f14dbd374da1cfd6de2ceb047
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6ef6635fc9097f147bf43b054a90015b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bdd64344b1764b14b96de78695ec4735
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a0b07f3de4d003c449e794d3ff007ac1
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 45ada4ffba7bf264f9500b8f6dd17ba4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -39,12 +39,14 @@ function ChatData:Init()
end
local function TimeSortChat(a,b)
return a.message.sendTime < b.message.sendTime
local a_sendTime = a.message.sendTime or a.message.sendTime64
local b_sendTime = b.message.sendTime or b.message.sendTime64
return a_sendTime < b_sendTime
end
local function TimeSortSystem(a,b)
local sendTimeA = a.sendTime or a.message.sendTime
local sendTimeB = b.sendTime or b.message.sendTime
local sendTimeA = a.sendTime or a.message.sendTime or a.message.sendTime64
local sendTimeB = b.sendTime or b.message.sendTime or b.message.sendTime64
return sendTimeA < sendTimeB
end
@ -136,7 +138,7 @@ function ChatData:ResetPersistentPrivateInfos()
for _,v1 in pairs(v.chats) do
if v1.message.subType == Enum.ChatSubType.Expedition then
local curTime = ManagerContainer.LuaTimerMgr:GetTimeSecond()
local isOneDay = ManagerContainer.LuaTimerMgr:TwoTimeSecondBetweenOneDay(v1.message.sendTime, curTime)
local isOneDay = ManagerContainer.LuaTimerMgr:TwoTimeSecondBetweenOneDay(v1.message.sendTime or v1.message.sendTime64, curTime)
if not isOneDay then
v1.message.used = true
end

View File

@ -233,7 +233,8 @@ public class GameMgr : SingletonMono<GameMgr>
IEnumerator GetSdkUUID(string v1, string v2, Action<string> onComplete)
{
#if UNITY_EDITOR
// test weixin minigame openid: oUEz364FbD3Qtus574MJ_KA7vCaA
// test weixin minigame openid:
//onComplete.Invoke("{\n\"openid\":\"oUEz364FbD3Qtus574MJ_KA7vCaA\",\n\"session_key\":\"xxxxx\",\n\"unionid\":\"xxxxx\",\n\"errcode\":0,\n\"errmsg\":\"xxxxx\"\n}");
onComplete.Invoke("{\n\"openid\":\"pc-100001\",\n\"session_key\":\"xxxxx\",\n\"unionid\":\"xxxxx\",\n\"errcode\":0,\n\"errmsg\":\"xxxxx\"\n}");
yield break;
#else

View File

@ -15,7 +15,7 @@ MonoBehaviour:
ProjectConf:
projectName: minigame
Appid: wx94eecfb4cfafcde5
CDN: https://rowebgl.oss-cn-hangzhou.aliyuncs.com/35
CDN: https://cdn.jianjia-cangcang.tech/game/3
assetLoadType: 0
compressDataPackage: 1
VideoUrl: