Browse Source

修复支付宝提交开户意愿,门店区域取值问题

lcl 1 year ago
parent
commit
780dbbc999
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Util/HaoDa/AlipayFunctionForHD.cs

+ 2 - 2
Util/HaoDa/AlipayFunctionForHD.cs

@@ -100,10 +100,10 @@ namespace MySystem
                 string province_code = "", city_code = "", district_code = "";
                 string province = "", city = "", district = "";
                 WebCMSEntities db = new WebCMSEntities();
-                OpenBankCityTable cityItem = db.OpenBankCityTable.FirstOrDefault(m => m.CityName.EndsWith(bizAddressCode));
+                HaoDaAreaCode cityItem = db.HaoDaAreaCode.FirstOrDefault(m => m.CityName.EndsWith(bizAddressCode));
                 if (cityItem != null)
                 {
-                    district_code = cityItem.Code;
+                    district_code = cityItem.CityCode;
                     city_code = district_code.Substring(0, 4) + "00";
                     province_code = district_code.Substring(0, 2) + "0000";
                     string[] CityNames = cityItem.CityName.Split(',');