Browse Source

判断订单分账回调类型

lichunlei 1 year ago
parent
commit
e2a09c3fdd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Util/HaoDa/WeChatPayBackService.cs

+ 1 - 1
Util/HaoDa/WeChatPayBackService.cs

@@ -311,7 +311,7 @@ namespace MySystem
                     try
                     {
                         //{"id":137403,"mchtNo":"1494637","tradeMchtNo":"030500107115593","channelMchtNo":"030500107115593","orderNo":"G2231123C02179895853","channelOrderNo":"50231123B00032642694","txSubCode":31,"paymentType":2,"status":0,"partStatus":0,"partAmount":0,"payAmount":1000,"payServiceFee":4,"settleAmount":996,"totalPerkAmount":0,"payTime":"2023-11-23 23:36:05","algoDate":"2023-11-23 00:00:00","bizDate":"2023-11-23 00:00:00","storeNo":"21627867","deviceSn":" ","cupsNo":"ylzf","cardType":0,"notPartAmount":996,"realAmount":996}
-                        if(content.Contains("\"settleAmount\""))
+                        if(content.Contains("\"settleAmount\"") && content.Contains("\"txSubCode\":31,"))
                         {
                             JsonData jsonObj = JsonMapper.ToObject(content);
                             string orderNo = jsonObj["orderNo"].ToString();