fix:1、添加支付,使用sdk的支付方案
This commit is contained in:
@@ -1,68 +1,68 @@
|
||||
namespace RedHotRoast
|
||||
{
|
||||
public static partial class GameMsg
|
||||
{
|
||||
public static readonly uint OpenGame = ++Cursor_BASE;
|
||||
public static readonly uint Update111Completed = ++Cursor_BASE;
|
||||
public static readonly uint BackMainScene = ++Cursor_BASE;
|
||||
public static readonly uint Update101Completed = ++Cursor_BASE;
|
||||
public static readonly uint Update102 = ++Cursor_BASE;
|
||||
|
||||
public static uint Slot_refresh = ++Cursor_BASE;
|
||||
public static uint Remake_state = ++Cursor_BASE;
|
||||
public static readonly uint MakeupSuccess = ++Cursor_BASE;
|
||||
public static readonly uint Update102Completed = ++Cursor_BASE;
|
||||
public static uint PaySuccess = ++Cursor_BASE;
|
||||
|
||||
public static uint Ad_success = ++Cursor_BASE;
|
||||
public static uint UpdateHotFixMax = ++Cursor_BASE;
|
||||
public static uint UpdateHotFixProgress = ++Cursor_BASE;
|
||||
public static readonly uint RefreshMakeupData = ++Cursor_BASE;
|
||||
public static uint Gold_refresh = ++Cursor_BASE;
|
||||
public static uint Sheep_item_refresh = ++Cursor_BASE;
|
||||
public static uint card_click = ++Cursor_BASE;
|
||||
public static uint UpdateCurrency102 = ++Cursor_BASE;
|
||||
|
||||
public static uint RefreshADTask = ++Cursor_BASE;
|
||||
public static readonly uint GetReward = ++Cursor_BASE;
|
||||
public static readonly uint ProcessReward = ++Cursor_BASE;
|
||||
|
||||
public static readonly uint Update101 = ++Cursor_BASE;
|
||||
public static readonly uint MakeUpConfirmUIClosed = ++Cursor_BASE;
|
||||
|
||||
public static readonly uint Update111 = ++Cursor_BASE;
|
||||
public static uint reset_game = ++Cursor_BASE;
|
||||
public static uint GetTaskReward = ++Cursor_BASE;
|
||||
public static uint pack_close = ++Cursor_BASE;
|
||||
public static uint RefreshRedDot = ++Cursor_BASE;
|
||||
public static uint resetH5progress = ++Cursor_BASE;
|
||||
public static uint RefreshGame = ++Cursor_BASE;
|
||||
public static uint RewardUIClosed = ++Cursor_BASE;
|
||||
public static uint H5ViewClickBtn = ++Cursor_BASE;
|
||||
public static uint apple_pay_success = ++Cursor_BASE;
|
||||
public static uint ExitGame = ++Cursor_BASE;
|
||||
|
||||
public static uint UpdateNoads = ++Cursor_BASE;
|
||||
public static uint Network_reconnection = ++Cursor_BASE;
|
||||
public static uint resurgence = ++Cursor_BASE;
|
||||
public static uint resurgence_close = ++Cursor_BASE;
|
||||
public static uint RefreshSaveingPot = ++Cursor_BASE;
|
||||
public static uint hideBroadCast = ++Cursor_BASE;
|
||||
public static uint showBroadCast = ++Cursor_BASE;
|
||||
public static uint updateRecordList = ++Cursor_BASE;
|
||||
public static uint ThreeDaysGiftUIClose = ++Cursor_BASE;
|
||||
public static uint rewardMul_close = ++Cursor_BASE;
|
||||
public static uint RefreshConfig = ++Cursor_BASE;
|
||||
public static uint UnlockLevelsuccess = ++Cursor_BASE;
|
||||
public static uint creatCARD = ++Cursor_BASE;
|
||||
public static uint LiveChange = ++Cursor_BASE;
|
||||
public static uint liveDetailClose = ++Cursor_BASE;
|
||||
public static uint UnlockSecretSuccess = ++Cursor_BASE;
|
||||
public static uint UnlockAlbums = ++Cursor_BASE;
|
||||
public static uint BuyVip = ++Cursor_BASE;
|
||||
public static uint CheckEnd = ++Cursor_BASE;
|
||||
public static uint AddChatNum = ++Cursor_BASE;
|
||||
public static uint Setbg = ++Cursor_BASE;
|
||||
public static uint liveVideoLoaded = ++Cursor_BASE;
|
||||
}
|
||||
namespace RedHotRoast
|
||||
{
|
||||
public static partial class GameMsg
|
||||
{
|
||||
public static readonly uint OpenGame = ++Cursor_BASE;
|
||||
public static readonly uint Update111Completed = ++Cursor_BASE;
|
||||
public static readonly uint BackMainScene = ++Cursor_BASE;
|
||||
public static readonly uint Update101Completed = ++Cursor_BASE;
|
||||
public static readonly uint Update102 = ++Cursor_BASE;
|
||||
|
||||
public static uint Slot_refresh = ++Cursor_BASE;
|
||||
public static uint Remake_state = ++Cursor_BASE;
|
||||
public static readonly uint MakeupSuccess = ++Cursor_BASE;
|
||||
public static readonly uint Update102Completed = ++Cursor_BASE;
|
||||
public static uint PaySuccess = ++Cursor_BASE;
|
||||
|
||||
public static uint Ad_success = ++Cursor_BASE;
|
||||
public static uint UpdateHotFixMax = ++Cursor_BASE;
|
||||
public static uint UpdateHotFixProgress = ++Cursor_BASE;
|
||||
public static readonly uint RefreshMakeupData = ++Cursor_BASE;
|
||||
public static uint Gold_refresh = ++Cursor_BASE;
|
||||
public static uint Sheep_item_refresh = ++Cursor_BASE;
|
||||
public static uint card_click = ++Cursor_BASE;
|
||||
public static uint UpdateCurrency102 = ++Cursor_BASE;
|
||||
|
||||
public static uint RefreshADTask = ++Cursor_BASE;
|
||||
public static readonly uint GetReward = ++Cursor_BASE;
|
||||
public static readonly uint ProcessReward = ++Cursor_BASE;
|
||||
|
||||
public static readonly uint Update101 = ++Cursor_BASE;
|
||||
public static readonly uint MakeUpConfirmUIClosed = ++Cursor_BASE;
|
||||
|
||||
public static readonly uint Update111 = ++Cursor_BASE;
|
||||
public static uint reset_game = ++Cursor_BASE;
|
||||
public static uint GetTaskReward = ++Cursor_BASE;
|
||||
public static uint pack_close = ++Cursor_BASE;
|
||||
public static uint RefreshRedDot = ++Cursor_BASE;
|
||||
public static uint resetH5progress = ++Cursor_BASE;
|
||||
public static uint RefreshGame = ++Cursor_BASE;
|
||||
public static uint RewardUIClosed = ++Cursor_BASE;
|
||||
public static uint H5ViewClickBtn = ++Cursor_BASE;
|
||||
public static uint IAP_PAY_SUCCESS = ++Cursor_BASE;
|
||||
public static uint ExitGame = ++Cursor_BASE;
|
||||
|
||||
public static uint UpdateNoads = ++Cursor_BASE;
|
||||
public static uint Network_reconnection = ++Cursor_BASE;
|
||||
public static uint resurgence = ++Cursor_BASE;
|
||||
public static uint resurgence_close = ++Cursor_BASE;
|
||||
public static uint RefreshSaveingPot = ++Cursor_BASE;
|
||||
public static uint hideBroadCast = ++Cursor_BASE;
|
||||
public static uint showBroadCast = ++Cursor_BASE;
|
||||
public static uint updateRecordList = ++Cursor_BASE;
|
||||
public static uint ThreeDaysGiftUIClose = ++Cursor_BASE;
|
||||
public static uint rewardMul_close = ++Cursor_BASE;
|
||||
public static uint RefreshConfig = ++Cursor_BASE;
|
||||
public static uint UnlockLevelsuccess = ++Cursor_BASE;
|
||||
public static uint creatCARD = ++Cursor_BASE;
|
||||
public static uint LiveChange = ++Cursor_BASE;
|
||||
public static uint liveDetailClose = ++Cursor_BASE;
|
||||
public static uint UnlockSecretSuccess = ++Cursor_BASE;
|
||||
public static uint UnlockAlbums = ++Cursor_BASE;
|
||||
public static uint BuyVip = ++Cursor_BASE;
|
||||
public static uint CheckEnd = ++Cursor_BASE;
|
||||
public static uint AddChatNum = ++Cursor_BASE;
|
||||
public static uint Setbg = ++Cursor_BASE;
|
||||
public static uint liveVideoLoaded = ++Cursor_BASE;
|
||||
}
|
||||
}
|
||||
@@ -1404,7 +1404,7 @@ namespace RedHotRoast
|
||||
/// <returns>true:广告兑换 -- false:三方支付</returns>
|
||||
public static bool IsAdModelOfPay()
|
||||
{
|
||||
return true;//zhushi
|
||||
// return true;//zhushi
|
||||
var isAd = GetLoginModel().Enwp != 1;
|
||||
return isAd;
|
||||
}
|
||||
@@ -1750,7 +1750,20 @@ namespace RedHotRoast
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public static string getTrackEvenName()
|
||||
{
|
||||
string event_ = ADEventTrack.Event;
|
||||
if (GetLoginModel().Enwp == 1)
|
||||
{
|
||||
int rate = GetCommonModel().PayRate;
|
||||
if (!IsGiftSwitch() || GetCommonModel().PayRate == 100)
|
||||
{
|
||||
MaxPayManager.isIOSPay = true;
|
||||
}
|
||||
event_ = MaxPayManager.isIOSPay ? ADEventTrack.IOS_Pay_Event : ADEventTrack.MaxPayEvent;
|
||||
}
|
||||
return event_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,10 @@ namespace RedHotRoast
|
||||
shopName = "",
|
||||
type = ""
|
||||
};
|
||||
List<ApplePay2> listA = ConfigSystem.GetConfig<ApplePay2>();
|
||||
// List<ApplePay2> listA = ConfigSystem.GetConfig<ApplePay2>();
|
||||
|
||||
//更新map中的value,与配置表的id对应
|
||||
PurchasingManager.SetShopMapValue();
|
||||
|
||||
// // 方式一:LINQ Select
|
||||
// List<ProductConfig> listB = listA
|
||||
|
||||
Reference in New Issue
Block a user