瀏覽代碼

修改请求方式

tianboguang 3 年之前
父節點
當前提交
0692c4afa5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform-common/src/main/java/com/platform/service/impl/ZhiHouseService.java

+ 1 - 1
platform-common/src/main/java/com/platform/service/impl/ZhiHouseService.java

@@ -246,7 +246,7 @@ public class ZhiHouseService {
     public TbUser getByUserId(Long userId) {
         Map<String, Object> mp = new HashMap<>();
         mp.put("userId", userId);
-        String url = zhiHouseHost + "shop/sys/user/infoAnon/"+userId;
+        String url = zhiHouseHost + "api/shop/getByUserId";
         ResponseEntity<ReturnDTO>  responseEntity = restTemplate.postForEntity(url, mp,ReturnDTO.class);
         if(responseEntity.getStatusCode()!= HttpStatus.OK){
             throw new CommonBaseException(ResultCodeEnum.D100);