adding productSearchTag/query

This commit is contained in:
Carl 2021-12-24 14:35:20 +08:00
parent e54245f871
commit 62960456bf
2 changed files with 18 additions and 0 deletions

View File

@ -42,4 +42,11 @@ public class GoodController {
return goodService.productQuery(goodsEntity); return goodService.productQuery(goodsEntity);
} }
@ApiOperation(value = "查询筛选标签信息", notes = "查询筛选标签信息")
@PostMapping("royalcanin/h5/productSearchTag/query")
public String transferProductSearchTag() throws Exception {
return goodService.productSearchQuery();
}
} }

View File

@ -9,6 +9,7 @@ import net.lab1024.smartadmin.util.SmartHttpUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -45,4 +46,14 @@ public class GoodService {
String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY); String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
return result; return result;
} }
public String productSearchQuery()throws Exception{
Map<String, String> paramMap = new HashMap<>();
paramMap.put("secret","H5@2021");
paramMap.put("channelId","15");
String sb = SmartHttpUtil.sendPostForm(url+"productSearchTag/query",paramMap,null);
JSONObject jsonObject = JSONObject.parseObject(sb);
String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
return result;
}
} }