We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/// <summary> /// 验证回调接口签名 /// </summary> /// <param name="formDics">表单的字典值</param> /// <returns></returns> public ResultMo CheckCallBackSign(IDictionary<string, string> formDics) { if (!formDics.ContainsKey("sign")) { return new ResultMo(ResultTypes.ParaError,"未发现sign参数"); } var sign = formDics["sign"]; //var signType = formDics["sign_type"]; formDics.Remove("sign"); formDics.Remove("sign_type"); var sortDics = new SortedDictionary<string, string>(formDics); var checkContent = string.Join("&", sortDics.Select(d => string.Concat(d.Key, "=", d.Value.UrlDecode()))); var result = new ResultMo(); CheckSign(checkContent, sign, result); return result; }
支付成功后,这里返回的还是 false 当前签名非法!为什么呢?
The text was updated successfully, but these errors were encountered:
这周我看下
Sorry, something went wrong.
@KevinWG 谢谢
No branches or pull requests
支付成功后,这里返回的还是 false
当前签名非法!为什么呢?
The text was updated successfully, but these errors were encountered: