|
@@ -5,10 +5,10 @@ using GFGGame;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
|
- /**********************************************************每日登录*************************************************/
|
|
|
+ /**********************************************************七日登录*************************************************/
|
|
|
public static class ActivitySProxy
|
|
|
{
|
|
|
- public static async ETTask<bool> ReqDailyLoginInfos()
|
|
|
+ public static async ETTask<bool> ReqSevenDayLoginInfos()
|
|
|
{
|
|
|
M2C_GetDailySignInBonusInfos response = null;
|
|
|
response = (M2C_GetDailySignInBonusInfos)await MessageHelper.SendToServer(new C2M_GetDailySignInBonusInfos());
|
|
@@ -16,14 +16,14 @@ namespace GFGGame
|
|
|
{
|
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
|
{
|
|
|
- ActivityDataManager.Instance.dailyLoginId = response.CuurentBonusId;
|
|
|
- ActivityDataManager.Instance.dailyLoginBonusStatus = response.BonusStatus;
|
|
|
+ ActivityDataManager.Instance.sevenDayLoginLoginId = response.CuurentBonusId;
|
|
|
+ ActivityDataManager.Instance.sevenDayLoginBonusStatus = response.BonusStatus;
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
- public static async ETTask<bool> ReqGetDailyLoginRewards(int id)
|
|
|
+ public static async ETTask<bool> ReqSevenDayLoginRewards(int id)
|
|
|
{
|
|
|
M2C_GetDailySinInBonus response = null;
|
|
|
response = (M2C_GetDailySinInBonus)await MessageHelper.SendToServer(new C2M_GetDailySinInBonus() { BonusId = id });
|
|
@@ -31,7 +31,7 @@ namespace GFGGame
|
|
|
{
|
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
|
{
|
|
|
- ActivityDataManager.Instance.dailyLoginBonusStatus = response.BonusStatus;
|
|
|
+ ActivityDataManager.Instance.sevenDayLoginBonusStatus = response.BonusStatus;
|
|
|
int[][] rewards = DailyLoginCfgArray.Instance.GetCfg(response.BonusId).rewardsArr;
|
|
|
|
|
|
BonusController.TryShowBonusList(rewards);
|
|
@@ -42,7 +42,25 @@ namespace GFGGame
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
- }
|
|
|
- /******************************************************************************************************************/
|
|
|
+ /*************************************************************首冲奖励*****************************************************/
|
|
|
|
|
|
+ //领取首冲奖励
|
|
|
+ public static async ETTask<bool> ReqFirstChargeBonusRewards()
|
|
|
+ {
|
|
|
+ M2C_GetDailySinInBonus response = null;
|
|
|
+ response = (M2C_GetDailySinInBonus)await MessageHelper.SendToServer(new C2M_GetDailySinInBonus() { });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ ActivityDataManager.Instance.firstChargeBonusStatus = response.BonusStatus;
|
|
|
+ BonusController.TryShowBonusList(GlobalCfgArray.globalCfg.firstChargeBonusArr);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|