mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
commit
156187d60d
@ -152,6 +152,11 @@ public class GoodController {
|
||||
public String transferProductSearchTag() throws Exception {
|
||||
return goodService.productSearchQuery();
|
||||
}
|
||||
@ApiOperation(value = "同步筛选标签信息", notes = "同步筛选标签信息")
|
||||
@PostMapping("royalcanin/productSearchTag/remoteGetProductSearchTagData")
|
||||
public void remoteGetProductSearchTagData() throws Exception {
|
||||
goodService.remoteGetProductSearchTagData();
|
||||
}
|
||||
|
||||
public ResponseDTO<String> addOperatreFullData(String type, String params, Long startTime, Long elapsedTime, Long acceptTime,String code,String msg)throws Exception{
|
||||
SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
@ -84,6 +84,15 @@ public class GoodService {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
public void remoteGetProductSearchTagData()throws Exception{
|
||||
Map<String, String> paramMap = new HashMap<>();
|
||||
paramMap.put("secret","H5@2021");
|
||||
paramMap.put("channelId","15");
|
||||
@ -105,7 +114,6 @@ public class GoodService {
|
||||
productSearchTagEntity.setTagCode(jsonObjectResult.getString("tagCode"));
|
||||
productSearchTagService.installAllSearchTag(productSearchTagEntity);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user