Browse Source

调整判断签约成功调条件

DuGuYang 1 year ago
parent
commit
cb05353946
1 changed files with 9 additions and 1 deletions
  1. 9 1
      Util/HaoDa/HaoDaExtQueryHelper.cs

+ 9 - 1
Util/HaoDa/HaoDaExtQueryHelper.cs

@@ -126,7 +126,7 @@ public class HaoDaExtQueryHelper
                     db.SaveChanges();
                     RedisDbconn.Instance.AddList("HaoDaAuthQueryHelper", "{\"MerchantId\":\"" + Id + "\",\"MchtNo\":\"" + info.MchtNo + "\",\"StoreNo\":\"" + info.StoreNo + "\"}");
                 }
-                else if (order_status == "AUDIT_PASS" || order_status == "AUDIT_REJECT" || order_status == "AUDIT_FREEZE")
+                else if (order_status == "AUDIT_REJECT" || order_status == "AUDIT_FREEZE")
                 {
                     MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
                     info.QueryCount = -1;
@@ -134,6 +134,14 @@ public class HaoDaExtQueryHelper
                     info.AlipayRemark = jsonObj["alipay_merchant_indirect_authorder_querystatus_response"]["msg"].ToString();
                     db.SaveChanges();
                 }
+                else if (order_status == "AUDIT_PASS")
+                {
+                    MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
+                    info.QueryCount = 2;
+                    merchant.QueryCount = 2;
+                    info.AlipayRemark = "";
+                    db.SaveChanges();
+                }
                 else
                 {
                     RedisDbconn.Instance.AddList("AlipayResultForHaoDaQueue", "{\"MerchantId\":\"" + Id + "\",\"order_no\":\"" + OrderNo + "\"}");