コード例 #1
0
        public JsonResult BasicPost()
        {
            var alipayaccount         = RequestHelper.GetValue("alipayaccount");
            var alipayremarksearchapi = RequestHelper.GetValue("alipayremarksearchapi");
            var portmin   = RequestHelper.GetInt("portmin");
            var portmax   = RequestHelper.GetInt("portmax");
            var rebatenum = RequestHelper.GetInt("rebatenum");

            if (string.IsNullOrEmpty(alipayaccount) || string.IsNullOrEmpty(alipayremarksearchapi) || portmin <= 0 || portmax <= 0 || portmax > 65535)
            {
                return(Json(new { result = false, info = "该参数不能为空!" }, JsonRequestBehavior.DenyGet));
            }
            var range  = $"{portmin}&{portmax}";
            var result = SettingService.Basic(alipayaccount, alipayremarksearchapi, range, rebatenum);

            LogService.Info($"修改Basic >>> {result} --- {alipayaccount}:{alipayremarksearchapi}");
            return(Json(new { result = result }, JsonRequestBehavior.DenyGet));
        }