fix:1、添加sdk。2、修复bug

This commit is contained in:
barry
2026-06-11 18:30:41 +08:00
parent fcf9128dd3
commit 570f4635f2
1240 changed files with 111200 additions and 39704 deletions
@@ -6,6 +6,7 @@ using DG.Tweening;
using FairyGUI;
using FGUI.Signin_19;
using IgnoreOPS;
using SGModule.Common.Extensions;
using Spine.Unity;
using UnityEngine;
@@ -106,6 +107,8 @@ namespace ChillConnect
var signList = signModel.DataList;
ui.com_gold.visible = !GameHelper.IsGiftSwitch();
// Debug.Log($"signList.Count:{signList.Count}");
for (int i = 0; i < signList.Count; i++)
{
@@ -123,12 +126,13 @@ namespace ChillConnect
private void RefreshView(btn_sign btnSign, SignDailyReward reward, int index)
{
btnSign.title = "0" + reward.id;
btnSign.reward_num.text = GameHelper.Get101Str(reward.quantity[0]);
btnSign.reward_num.text = GameHelper.IsGiftSwitch()?GameHelper.getChString(reward.quantity[0]):GameHelper.Get101Str(reward.quantity[0]);
btnSign.day.selectedIndex = index != 6 ? 0 : 1;
if (index == 6)
btnSign.day.selectedIndex = 0;
btnSign.isGift.selectedIndex = GameHelper.IsGiftSwitch()? 1 : 0;
if (index == 6 && reward.quantity.Length > 1)
{
btnSign.day.selectedIndex = 1;
btnSign.reward_num1.text = GameHelper.Get101Str(reward.quantity[1]);
setItemUrl(btnSign.loader_icon0, reward.rewards_type[1]);
}
@@ -190,6 +194,7 @@ namespace ChillConnect
else if (urltype == 1) loader.url = "ui://Common_01/spin_remove"; //yichu
else if (urltype == 2) loader.url = "ui://Common_01/spin_undo"; //chehui
else if (urltype == 3) loader.url = "ui://Common_01/spin_refresh"; //shuaxin
else if (urltype == 4) loader.url = "ui://Common_01/record_money"; //shuaxin
}
private Action closeCallback;
@@ -197,12 +202,27 @@ namespace ChillConnect
{
var rewardModel = new RewardData();
for (var i = 0; i < vo.item1.Length; i++)
{
var rewardData = new RewardSingleData(101, vo.quantity[i], RewardOrigin.SignIn, sign_day)
var points = ui.point;
var typeId = 101;
var rewardNum = vo.quantity[i];
if (GameHelper.IsGiftSwitch())
{
points = ui.point1;
typeId = vo.item1[i];
}
else
{
rewardNum = GameHelper.Get101Str(vo.quantity[i]).As<decimal>();
}
var rewardData = new RewardSingleData(typeId, rewardNum, RewardOrigin.SignIn, sign_day)
{
startPosition = startPos,
endPosition = new Vector2(ui.point.x - 110, ui.point.y - 110)
endPosition = new Vector2(points.x - 110, points.y - 110)
};
rewardModel.AddReward(rewardData);
@@ -230,7 +250,11 @@ namespace ChillConnect
// 用来刷新todo界面的一些信息,如红点等
// GameDispatcher.Instance.Dispatch(GameMsg.UpdateTodoView);
CommonHelper.ShowNumAnim(ui.com_gold.GetChild("text_gold") as GTextField, vo.quantity[0], 101);
if (!GameHelper.IsGiftSwitch() || vo.item1[0] == 101)
{
CommonHelper.ShowNumAnim(ui.com_gold.GetChild("text_gold") as GTextField, vo.quantity[0], 101);
}
// CtrlCloseUI();