From 2c06ed04b4d3e177446451c852adf684881ce003 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期四, 11 六月 2020 12:13:43 +0800
Subject: [PATCH] 发圈 一键发单隐藏bug

---
 fanli/src/main/java/com/yeshi/fanli/controller/CallBackController.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/CallBackController.java b/fanli/src/main/java/com/yeshi/fanli/controller/CallBackController.java
index cbeaabb..2eddfeb 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/CallBackController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/CallBackController.java
@@ -268,6 +268,9 @@
 		JSONObject data = JSONObject.fromObject(contentDecode).optJSONObject("data");
 
 		JSONArray array = data.optJSONObject("recommend").optJSONArray("resultList");
+		
+		long startTime=System.currentTimeMillis();
+		
 		for (int i = array.size() - 1; i >= 0; i--) {
 			JSONObject item = array.optJSONObject(i);
 			String title = item.optString("itemName");
@@ -334,9 +337,11 @@
 
 			ActivityUser user = ruleList.get((int) (ruleList.size() * Math.random())).getActivityUser();
 			try {
-				goodsEvaluateService.addGoodsEvaluate(itemId + "", imageList, user, doc, null, null);
+				goodsEvaluateService.addGoodsEvaluate(itemId + "", imageList, user, doc, null, new Date(startTime-1000*60*20L*i));
 			} catch (GoodsEvaluateException e) {
 				e.printStackTrace();
+			}catch(Exception e){
+				e.printStackTrace();
 			}
 		}
 

--
Gitblit v1.8.0