예제 #1
0
        public static InsertResult RechargeDonateRule_OnInsert(RechargeDonateRule rule)
        {
            InsertResultAndAutoID result = ServerProxy.InsertRechargeDonateRule(rule);

            switch (result.InsertResult)
            {
            case InsertResult.Success:
                rule.AutoID = result.AutoID;
                if (GlobalCache.rechargeDonateRuleList == null)
                {
                    GlobalCache.rechargeDonateRuleList = new List <RechargeDonateRule>();
                }
                GlobalCache.rechargeDonateRuleList?.Add(rule);
                break;

            case InsertResult.Error:
                break;

            default:
                break;
            }
            return(result.InsertResult);
        }