Browse Source

商户查询审核状态判断商户号为空不

lcl 6 months ago
parent
commit
a1aee198fc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Util/HaoDa/HaoDaHelper.cs

+ 4 - 0
Util/HaoDa/HaoDaHelper.cs

@@ -83,6 +83,10 @@ namespace MySystem
         /// <returns></returns>
         /// <returns></returns>
         public string QueryMerchantStatus(string instId, string mchtNo, int BrandId = 0)
         public string QueryMerchantStatus(string instId, string mchtNo, int BrandId = 0)
         {
         {
+            if(string.IsNullOrEmpty(mchtNo))
+            {
+                return "{}";
+            }
             var BoxRequestUrl = HaodaUnionParam.BoxRequestUrl;
             var BoxRequestUrl = HaodaUnionParam.BoxRequestUrl;
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;