Exemple #1
0
        public ActionResult GetConfig()
        {
            var dict = RedisCacheHelper.GetSMSConfig();

            if (dict == null || dict.Keys.Count <= 0)
            {
                dict = new Dictionary <string, string>
                {
                    { "retail", "0" },
                    { "recharge", "0" },
                };
                RedisCacheHelper.SetSMSConfig(dict);
            }
            return(Json(new OperationResult(OperationResultType.Success, string.Empty, dict), JsonRequestBehavior.AllowGet));
        }