ソースを参照

评论接口去除测试代码

liliang4869 7 年 前
コミット
5b1916d0ef
共有2 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 2 2
      src/main/java/com/goafanti/comment/service/impl/CommentServiceImpl.java
  2. 1 1
      src/main/webapp/WEB-INF/views/portal/index.html

+ 2 - 2
src/main/java/com/goafanti/comment/service/impl/CommentServiceImpl.java

@@ -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();

File diff suppressed because it is too large
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/index.html