Commit 2d007e82 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx-api]: 订单商品评价设置不正确

parent a749e9c9
...@@ -942,8 +942,9 @@ public class WxOrderController { ...@@ -942,8 +942,9 @@ public class WxOrderController {
// 1. 创建评价 // 1. 创建评价
LitemallComment comment = new LitemallComment(); LitemallComment comment = new LitemallComment();
comment.setUserId(userId); comment.setUserId(userId);
comment.setType((byte)0);
comment.setValueId(orderGoods.getGoodsId()); comment.setValueId(orderGoods.getGoodsId());
comment.setType((byte)1); comment.setStar(star.shortValue());
comment.setContent(content); comment.setContent(content);
comment.setHasPicture(hasPicture); comment.setHasPicture(hasPicture);
comment.setPicUrls(picUrls.toArray(new String[]{})); comment.setPicUrls(picUrls.toArray(new String[]{}));
......
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