public ActionResult GetNewSign(string param, string clientid) { var sign = ApiCommon.GetNewSignature(param, Request, clientid, _signCheckService); return(Json(new { sign = sign, }, JsonRequestBehavior.AllowGet)); }
protected bool VerifyNewParam(string param, string clientId, ISignCheckService signCheckService) { var sign = ApiCommon.GetNewSignature(param, Request, clientId, signCheckService); if (Request["sign"].ToLower() != sign) { log.Error("sign error!" + sign); return(false); } else { log.Debug("sign success!"); return(true); } }