|
|
@@ -31,8 +31,8 @@ public class CommentServiceImpl extends BaseMybatisDao<JtCommodityCommentMapper>
|
|
|
public int addNewComment(CommentInput commentInput, String ip) {
|
|
|
// TODO Auto-generated method stub
|
|
|
String id=UUID.randomUUID().toString();
|
|
|
-// String uid=TokenManager.getUserId();
|
|
|
- String uid="1180fa62-7c42-44be-bc41-5583814d69f4";
|
|
|
+ String uid=TokenManager.getUserId();
|
|
|
+// String uid="1180fa62-7c42-44be-bc41-5583814d69f4";
|
|
|
JtOrder jtOrder=jtOrderMapper.selectByPrimaryKey(commentInput.getOrderNo());
|
|
|
if(jtOrder==null || jtOrder.getBuyerId()==null || !jtOrder.getBuyerId().equals(uid))return -1;
|
|
|
JtCommodityComment jtCommodityComment=new JtCommodityComment();
|