Просмотр исходного кода

Merge branch 'release_toaliyun_real_202112' of https://git.malls.iformall.com/server/formallProject into release_toaliyun_real_202112

release_toaliyun_real
xhxu 4 лет назад
Родитель
Сommit
8ef38fffe0
1 измененных файлов: 5 добавлений и 5 удалений
  1. +5
    -5
      mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiUtil.java

+ 5
- 5
mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiUtil.java Просмотреть файл

@@ -200,13 +200,13 @@ public class HaiKangWeiShiUtil {
throw new MallinkException(errStatus,"haikang getFee error.["+result.getString("error")+"]"+result.getString("message"));
}
if (!result.getString("code").equals("200") ) {
if (!result.getString("code").equals("0") ) {
String message = result.getString("msg");
throw new MallinkException(result.getInteger("code"), "haikang getFee error."+message);
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(), "haikang getFee error.["+result.getString("code")+"]"+message);
}
JSONObject attribute = result.getJSONObject("data");
if (null == attribute) {
throw new MallinkException(result.getInteger("code"), "haikang getFee error. no result"+carNumber);
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(), "haikang getFee error. no result ["+result.getInteger("code")+"]"+carNumber);
}
return attribute;
}
@@ -317,10 +317,10 @@ public class HaiKangWeiShiUtil {

if (null != pairs) {
try {
StringEntity entity = new StringEntity(JSON.toJSONString(pairs));
StringEntity entity = new StringEntity(JSON.toJSONString(pairs),"UTF-8");
entity.setContentType("application/json");
httpPost.setEntity(entity);
} catch (UnsupportedEncodingException e) {
} catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
}
}


Загрузка…
Отмена
Сохранить