mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-05 11:46:40 +08:00
adding productSearchTag/query
This commit is contained in:
parent
e54245f871
commit
62960456bf
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user