feat(upserver): 接入认证与KV存档并完成限定钓鱼闭环

This commit is contained in:
Liubing\LB
2026-09-28 18:14:01 +08:00
parent f40a816cc4
commit 0eb43b2b40
129 changed files with 11612 additions and 573 deletions

View File

@@ -171,9 +171,9 @@ public class SocialClubJoined : MonoBehaviour
void SetSignCD()
{
var timer = ZZTimeHelper.UtcNow().UtcNowOffset();
btn_sign.gameObject.SetActive(_socialData.signTime?.DayOfYear != timer.DayOfYear);
sign_cd.SetActive(_socialData.signTime?.DayOfYear == timer.DayOfYear);
if (_socialData.signTime?.DayOfYear == timer.DayOfYear)
btn_sign.gameObject.SetActive(_socialData.signTime?.Date != timer.Date);
sign_cd.SetActive(_socialData.signTime?.Date == timer.Date);
if (_socialData.signTime?.Date == timer.Date)
{
StartTimer();
}
@@ -258,11 +258,21 @@ public class SocialClubJoined : MonoBehaviour
{
emojio_tips.SetActive(!emojio_tips.activeSelf);
}
void OnSign()
async void OnSign()
{
//签到
_socialData.ClubSingin();
SetSignCD();
if (!btn_sign.interactable) return;
var version = _socialData.customServerMgr.SessionVersion;
btn_sign.interactable = false;
try { await _socialData.ClubSingin(); }
catch (Exception ex) { Debug.LogException(ex); }
finally
{
if (this != null && version == _socialData.customServerMgr.SessionVersion)
{
btn_sign.interactable = true;
SetSignCD();
}
}
}
void ClickHelpEnergyGray()
{