Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -121,7 +121,7 @@ justauth:
|
||||
erp:
|
||||
address: hana-dev.yncic.com
|
||||
sapsys: ZTDEV203
|
||||
secretKey: 123456789 # erp秘钥
|
||||
secret-key: 123456789 # erp秘钥
|
||||
|
||||
eplat:
|
||||
share:
|
||||
|
||||
@@ -105,7 +105,7 @@ zt:
|
||||
erp:
|
||||
address: hana-dev.yncic.com
|
||||
sapsys: ZTDEV203
|
||||
secretKey: 123456789 # erp秘钥
|
||||
secret-key: 123456789 # erp秘钥
|
||||
|
||||
eplat:
|
||||
share:
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ErpConfig {
|
||||
@Value("${erp.sapsys:}")
|
||||
private String sapsys;
|
||||
|
||||
@Value("${erp.secretKey:}")
|
||||
@Value("${erp.secret-key:}")
|
||||
private String secretKey;
|
||||
|
||||
/**
|
||||
@@ -153,18 +153,21 @@ public class ErpConfig {
|
||||
throw exception(ERP_NOT_EXISTS);
|
||||
} else if (succeed && "S".equals(data.getString("E_FLAG"))) {
|
||||
String flag = "S";
|
||||
String E_RESP = data.getString("E_RESP");
|
||||
String E_MSG = data.getString("ET_MSG");
|
||||
String E_RESP = data.containsKey("E_RESP") ? data.getString("E_RESP") : null;
|
||||
String E_MSG = data.containsKey("ET_MSG") ? data.getString("ET_MSG") : null;
|
||||
if (StrUtil.isBlank(E_MSG)) {
|
||||
E_MSG = jsonResponse.getString("msg");
|
||||
}
|
||||
resMap.put("E_RESP", E_RESP);
|
||||
resMap.put("resStr", E_MSG);
|
||||
resMap.put("flag", flag);
|
||||
} else if (!succeed && "E".equals(data.getString("E_FLAG"))) {
|
||||
String flag = "E";
|
||||
String E_MSG = data.getString("ET_MSG");
|
||||
String E_RESP = data.containsKey("E_RESP") ? data.getString("E_RESP") : null;
|
||||
String E_MSG = data.containsKey("ET_MSG") ? data.getString("ET_MSG") : null;
|
||||
if (StrUtil.isBlank(E_MSG)) {
|
||||
E_MSG = jsonResponse.getString("msg");
|
||||
}
|
||||
String E_RESP = data.getString("E_RESP");
|
||||
resMap.put("E_RESP", E_RESP);
|
||||
resMap.put("resStr", E_MSG);
|
||||
resMap.put("flag", flag);
|
||||
|
||||
Reference in New Issue
Block a user