Skip to content

Commit

Permalink
工行支付返回码判断
Browse files Browse the repository at this point in the history
  • Loading branch information
郑大松 authored and 郑大松 committed Aug 4, 2023
1 parent 5a56613 commit 59b5ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.6.6</Version>
<Version>1.6.7</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>雪雁</Authors>
Expand Down
5 changes: 4 additions & 1 deletion src/Magicodes.Pay.Icbcpay/IcbcpayAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ public IcbcpayOutput PayNotifyHandler(Dictionary<string, string> dic)
msg_id = respMap["msg_id"]

};
var bizResultJson = JsonConvert.SerializeObject(bizResult);
if(bizResult.return_code != "0")
throw new Exception($"工行支付失败");

var bizResultJson = JsonConvert.SerializeObject(bizResult);
var signDic = $"\"response_biz_content\":{bizResultJson },\"sign_type\":\"{signType}\"";
sign = IcbcSignature.sign(signStr, signType, IcbcSettings.MY_PRIVATE_KEY, charset);

Expand Down

0 comments on commit 59b5ed6

Please sign in to comment.