瀏覽代碼

优化商户

Your Name 2 年之前
父節點
當前提交
100e812d41

+ 2 - 1
service-api/src/main/java/com/java110/api/smo/GetCommunityStoreInfoSMOImpl.java

@@ -36,7 +36,8 @@ public class GetCommunityStoreInfoSMOImpl extends DefaultAbstractComponentSMO im
         }
 
         if(!StringUtil.isJsonObject(responseEntity.getBody())){
-            return new ResultVo(responseEntity.getStatusCode() == HttpStatus.OK ? ResultVo.CODE_OK : ResultVo.CODE_ERROR, responseEntity.getBody());
+           // return new ResultVo(responseEntity.getStatusCode() == HttpStatus.OK ? ResultVo.CODE_OK : ResultVo.CODE_ERROR, responseEntity.getBody());
+            throw new IllegalArgumentException(responseEntity.getBody());
         }
 
         JSONObject paramJson = JSONObject.parseObject(responseEntity.getBody());

+ 2 - 1
springboot/src/main/java/com/java110/boot/smo/GetCommunityStoreInfoSMOImpl.java

@@ -35,7 +35,8 @@ public class GetCommunityStoreInfoSMOImpl extends DefaultAbstractComponentSMO im
         }
 
         if(!StringUtil.isJsonObject(responseEntity.getBody())){
-            return new ResultVo(responseEntity.getStatusCode() == HttpStatus.OK ? ResultVo.CODE_OK : ResultVo.CODE_ERROR, responseEntity.getBody());
+            //return new ResultVo(responseEntity.getStatusCode() == HttpStatus.OK ? ResultVo.CODE_OK : ResultVo.CODE_ERROR, responseEntity.getBody());
+            throw new IllegalArgumentException(responseEntity.getBody());
         }
 
         JSONObject paramJson = JSONObject.parseObject(responseEntity.getBody());