Commit 58fc87d2 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx-api]: 设置默认值防止空指针异常

parent 04bf86cb
...@@ -230,7 +230,8 @@ public class WxGoodsController { ...@@ -230,7 +230,8 @@ public class WxGoodsController {
@LoginUser Integer userId, @LoginUser Integer userId,
@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "10") Integer size, @RequestParam(defaultValue = "10") Integer size,
@Sort String sort, @Order String order) { @Sort @RequestParam(defaultValue = "add_time") String sort,
@Order @RequestParam(defaultValue = "desc") String order){
//添加到搜索历史 //添加到搜索历史
if (userId != null && !StringUtils.isNullOrEmpty(keyword)) { if (userId != null && !StringUtils.isNullOrEmpty(keyword)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment