|
@@ -35,11 +35,11 @@ namespace MySystem
|
|
string identity_type = info.SubjectType;
|
|
string identity_type = info.SubjectType;
|
|
string store_address = info.BizStoreAddress;
|
|
string store_address = info.BizStoreAddress;
|
|
string merchant_type = "STORE";
|
|
string merchant_type = "STORE";
|
|
- if(!string.IsNullOrEmpty(info.MerchantType))
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(info.MerchantType))
|
|
{
|
|
{
|
|
merchant_type = info.MerchantType;
|
|
merchant_type = info.MerchantType;
|
|
}
|
|
}
|
|
- if(merchant_type == "STALL")
|
|
|
|
|
|
+ if (merchant_type == "STALL")
|
|
{
|
|
{
|
|
store_address = "无";
|
|
store_address = "无";
|
|
}
|
|
}
|
|
@@ -63,7 +63,7 @@ namespace MySystem
|
|
if (info.SubjectType == "SUBJECT_TYPE_SMALL")
|
|
if (info.SubjectType == "SUBJECT_TYPE_SMALL")
|
|
{
|
|
{
|
|
info.LicenseCopy = info.IdCardCopy;
|
|
info.LicenseCopy = info.IdCardCopy;
|
|
- for(int i = 0; i < 9; i++)
|
|
|
|
|
|
+ for (int i = 0; i < 9; i++)
|
|
{
|
|
{
|
|
CertMerchantName = CertMerchantName.Replace(i.ToString(), "");
|
|
CertMerchantName = CertMerchantName.Replace(i.ToString(), "");
|
|
}
|
|
}
|
|
@@ -107,9 +107,15 @@ namespace MySystem
|
|
city_code = district_code.Substring(0, 4) + "00";
|
|
city_code = district_code.Substring(0, 4) + "00";
|
|
province_code = district_code.Substring(0, 2) + "0000";
|
|
province_code = district_code.Substring(0, 2) + "0000";
|
|
string[] CityNames = cityItem.CityName.Split(',');
|
|
string[] CityNames = cityItem.CityName.Split(',');
|
|
- district = CityNames[CityNames.Length - 3];
|
|
|
|
- city = CityNames[CityNames.Length - 2];
|
|
|
|
- province = CityNames[CityNames.Length - 1];
|
|
|
|
|
|
+ province = CityNames[0];
|
|
|
|
+ if (CityNames.Length >= 2)
|
|
|
|
+ {
|
|
|
|
+ city = CityNames[1];
|
|
|
|
+ }
|
|
|
|
+ if (CityNames.Length >= 3)
|
|
|
|
+ {
|
|
|
|
+ district = CityNames[2];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
BizContent += " \"support_credentials\":{" +
|
|
BizContent += " \"support_credentials\":{" +
|
|
" \"merchant_type\":\"" + merchant_type + "\"," +
|
|
" \"merchant_type\":\"" + merchant_type + "\"," +
|