From 7da75926f4f910a0fa23ab96f2af637d0a9578a0 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 19 四月 2019 14:14:16 +0800
Subject: [PATCH] 用户资金偿还系统初步建立

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java
index 5458278..6c432ea 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java
@@ -931,7 +931,7 @@
 				throw new UserAccountException(1, "楠岃瘉鐮侀敊璇紝閲嶆柊杈撳叆");
 			}
 		}
-		
+
 		JSONObject logInfo = new JSONObject();
 		logInfo.put("appId", appId);
 		logInfo.put("phone", phone);
@@ -944,13 +944,11 @@
 		if (identifyCode1 != null && identifyCode1.getEffective() != null && identifyCode1.getEffective()) {
 			throw new UserAccountException(Constant.CODE_FORBIDDEN_USER, Constant.FORBIDDEN_USER_REASON_DESC);
 		}
-		
-		
+
 		// 娓呯┖闄愬埗
 		redisManager.clearSMSFrequencyLimit(phone, SMSHistory.TYPE_LOGIN);
 		// 娓呯悊娆℃暟
 		redisManager.removeCommonString("sendMSNLoginCount" + phone);
-		
 
 		// 鏌ヨ鏄惁瀛樺湪璇ョ數璇濆巻鍙茬敤鎴�
 		UserInfo userInfo = userInfoMapper.getEffectiveUserInfoByPhone(phone);
@@ -1007,9 +1005,13 @@
 		UserInfo userInfo = userInfoMapper.getEffectiveUserInfoByWXUnionId(weiXinUser.getUnionid());
 		// 鐩存帴鐢ㄧ殑寰俊鐧诲綍
 		if (userInfo != null) {
+			LogHelper.test("寰俊unionID瀛樺湪:"+weiXinUser.getUnionid());
 			// 鏇存柊璐︽埛鐧诲綍淇℃伅
 			updateLonginInfo(userInfo, loginType, request);
+			// 鍒犻櫎閭�璇峰垎浜浘
+			spreadUserImgService.deleteImgUrl(userInfo.getId());
 		} else {
+			LogHelper.test("寰俊unionID涓嶅瓨鍦�:"+weiXinUser.getUnionid());
 			// 鍒涘缓鏂拌处鎴�
 			userInfo = new UserInfo();
 			userInfo.setPortrait(weiXinUser.getHeadimgurl());

--
Gitblit v1.8.0