|
@@ -18,7 +18,7 @@ namespace GFGEditor
|
|
public static void startScan()
|
|
public static void startScan()
|
|
{
|
|
{
|
|
ItemCfg[] dataArray = ItemCfgArray.Instance.dataArray;
|
|
ItemCfg[] dataArray = ItemCfgArray.Instance.dataArray;
|
|
- GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetLeaguePrayApproach, GetLeagueAnswerApproach, CheckStoreApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckClothingFosterApproach, CheckDailyTaskApproach, CheckWeeklyTaskApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetArenaApproach,GetHeavenApproach ,GetOpenServerFightApproach };
|
|
|
|
|
|
+ GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetLeaguePrayApproach, GetLeagueAnswerApproach, CheckStoreApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckClothingFosterApproach, CheckDailyTaskApproach, CheckWeeklyTaskApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetArenaApproach,GetHeavenApproach ,GetOpenServerFightApproach, GetYuanXiaoGameConsumeApproach, GetYuanXiaoRewardItemApproach };
|
|
Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
|
|
Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
|
|
Dictionary<ItemCfg, List<int>> syntheticSuitDic = new Dictionary<ItemCfg, List<int>>();
|
|
Dictionary<ItemCfg, List<int>> syntheticSuitDic = new Dictionary<ItemCfg, List<int>>();
|
|
Dictionary<SuitCfg, Dictionary<string, string>> suitTagsDic = new Dictionary<SuitCfg, Dictionary<string, string>>();
|
|
Dictionary<SuitCfg, Dictionary<string, string>> suitTagsDic = new Dictionary<SuitCfg, Dictionary<string, string>>();
|
|
@@ -408,6 +408,34 @@ namespace GFGEditor
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
|
+ /// 尝试获取元宵小游戏消耗门票的产出途径
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="itemId"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ private static string GetYuanXiaoGameConsumeApproach(int itemId)
|
|
|
|
+ {
|
|
|
|
+ if (itemId == ConstItemID.YUANXIAO_GAME_CONSUME)
|
|
|
|
+ {
|
|
|
|
+ return "ACTIVITY_GET_YUAN_XIAO_TASK";
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 尝试获取元宵小游戏奖励的产出途径
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="itemId"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ private static string GetYuanXiaoRewardItemApproach(int itemId)
|
|
|
|
+ {
|
|
|
|
+ if (itemId == ConstItemID.YUANXIAO_REWARD)
|
|
|
|
+ {
|
|
|
|
+ return "ACTIVITY_GET_YUAN_XIAO";
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
/// 尝试获取剧情关卡产出途径
|
|
/// 尝试获取剧情关卡产出途径
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="itemId"></param>
|
|
/// <param name="itemId"></param>
|
|
@@ -655,6 +683,12 @@ namespace GFGEditor
|
|
List<ShopCfg> storyActivityCfg = ShopCfgArray.Instance.GetCfgsBymenu1Andmenu2(ConstStoreTabId.STORE_EXCHANGE, ConstStoreSubId.STORE_ACTIVITY_EXCHANGE);
|
|
List<ShopCfg> storyActivityCfg = ShopCfgArray.Instance.GetCfgsBymenu1Andmenu2(ConstStoreTabId.STORE_EXCHANGE, ConstStoreSubId.STORE_ACTIVITY_EXCHANGE);
|
|
for (int i = 0; i < storyActivityCfg.Count; i++)
|
|
for (int i = 0; i < storyActivityCfg.Count; i++)
|
|
{
|
|
{
|
|
|
|
+ // 去除未上架的活动商品
|
|
|
|
+ if (!string.IsNullOrEmpty(storyActivityCfg[i].startTime) && !TimeUtil.IsBeforeCurTime(storyActivityCfg[i].startTime) || !string.IsNullOrEmpty(storyActivityCfg[i].endTime) && !TimeUtil.IsLaterCurTime(storyActivityCfg[i].endTime))
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (CheckIsHasItem(itemId, storyActivityCfg[i].itemId))
|
|
if (CheckIsHasItem(itemId, storyActivityCfg[i].itemId))
|
|
{
|
|
{
|
|
approachs.Add(ConstFunctionId.STORE + "=" + ConstStoreTabId.STORE_EXCHANGE + "=" + ConstStoreSubId.STORE_ACTIVITY_EXCHANGE);
|
|
approachs.Add(ConstFunctionId.STORE + "=" + ConstStoreTabId.STORE_EXCHANGE + "=" + ConstStoreSubId.STORE_ACTIVITY_EXCHANGE);
|