From 5f13dcc8eaac7cd26c0ec41bd1b3efbb70a08180 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 16 六月 2020 17:45:09 +0800
Subject: [PATCH] 云发单金额修改,增加获取电话号码接口

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java
index df75ec1..bd0bef6 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java
@@ -35,6 +35,7 @@
 import com.yeshi.fanli.entity.system.ConfigKeyEnum;
 import com.yeshi.fanli.exception.user.cloud.UserCloudException;
 import com.yeshi.fanli.exception.user.cloud.UserCloudGroupException;
+import com.yeshi.fanli.exception.user.cloud.UserCloudOrderException;
 import com.yeshi.fanli.log.LogHelper;
 import com.yeshi.fanli.service.inter.config.ConfigService;
 import com.yeshi.fanli.service.inter.dynamic.GoodsEvaluateService;
@@ -247,8 +248,9 @@
 		if (listBanner != null && listBanner.size() > 0) {
 			cloudInfoVO.setCourse(listBanner.get(0));
 		}
+		GsonBuilder gsonBuilder = new GsonBuilder();
 		
-		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(cloudInfoVO));
+		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(gsonBuilder.create().toJson(cloudInfoVO)));
 	}
 
 	/**
@@ -720,6 +722,34 @@
 
 	
 	/**
+	 * 鏀粯瀹屾垚
+	 * 
+	 * @param id
+	 * @param out
+	 */
+	@RequestMapping(value = "payEnd")
+	public void payEnd(String callback, AcceptData acceptData, Long uid, Long id, PrintWriter out) {
+		if (uid == null || id == null) {
+			out.print(JsonUtil.loadFalseResult(1, "鍙傛暟淇℃伅缂哄け"));
+			return;
+		}
+		
+		try {
+			// 妫�娴嬫槸鍚︽敮浠樺畬鎴�
+			userCloudAlipayManager.tradeQueryByOrderId(id);
+			
+			UserCloudOrder cloudOrder = userCloudOrderService.selectByPrimaryKey(id);
+			JSONObject dataObject = new JSONObject();
+			dataObject.put("money", cloudOrder.getMoney());
+			JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(dataObject));
+		} catch (Exception e) {
+			out.print(JsonUtil.loadFalseResult(1, "鍥炶皟淇℃伅澶辫触"));
+			LogHelper.errorDetailInfo(e);
+		}
+	}
+	
+	
+	/**
 	 * 鍔ㄦ�佷竴閿彂鍗�
 	 * @param callback
 	 * @param acceptData

--
Gitblit v1.8.0