/// <summary> /// /// </summary> /// <returns></returns> public bool CheckSign() { if (_paramSet.ContainsKey(SignName)) { if (_requestParam != null) { string key = SignUtils.EncodeSign(_requestParam, _signKey); if (!string.IsNullOrEmpty(key) && key == _paramSet[SignName]) { return(true); } } } return(false); }
/// <summary> /// 签名加密 /// </summary> /// <param name="sign"></param> /// <returns></returns> protected virtual string EncryptSign(string sign) { return(SignUtils.EncodeSign(sign, SignKey)); }