wanglang 1 месяц назад
Родитель
Сommit
20a36da100

+ 2 - 1
src/main/java/com/sunxung/factoring/service/smbApi/api/impl/SMBApiServiceImpl.java

@@ -419,7 +419,8 @@ public class SMBApiServiceImpl implements SMBApiService {
             Map<String, Object> responseMap = SnbApiHelper.send(snbRequestBean);
             commonResponse.setRespCode(responseMap.getOrDefault("respCode", "").toString());
             commonResponse.setRespMsg(responseMap.getOrDefault("respMsg", "").toString());
-            commonResponse.setAlgorithm(responseMap.getOrDefault("algorithm", "").toString());
+            commonResponse.setAlgorithm(
+                    responseMap.getOrDefault("algorithm", "") == null ? "" : responseMap.get("algorithm").toString());
             commonResponse.setCharset(responseMap.getOrDefault("charset", "").toString());
             commonResponse.setSerialNo(responseMap.getOrDefault("serialNo", "").toString());
             commonResponse.setChannelSerialNo(responseMap.getOrDefault("channelSerialNo", "").toString());