feat(upserver): 接入认证与KV存档并完成限定钓鱼闭环
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user