albertshaw 8 years ago
parent
commit
df0690dcd2

+ 1 - 2
src/main/java/com/goafanti/user/controller/UserApiController.java

@@ -772,8 +772,7 @@ public class UserApiController extends BaseApiController {
 				res.getError().add(buildError(ErrorConstants.VCODE_EMPTY_ERROR));
 				return res;
 			}
-			if (!verificationCode
-					.equalsIgnoreCase((String) TokenManager.getSession().getAttribute(VerifyCodeUtils.V_CODE))) {
+			if (!VerifyCodeUtils.verifyCode(verificationCode)) {
 				res.getError().add(buildError(ErrorConstants.VCODE_ERROR));
 				return res;
 			}

+ 1 - 0
src/main/webapp/WEB-INF/views/user/subscriberDetail.html

@@ -21,6 +21,7 @@
 					<div>
 						<h4 th:text="${rePartnerDetail.workUnit}?${rePartnerDetail.workUnit}:${rePartnerDetail.username}"></h4><h4 th:text="${rePartnerDetail.position}?${rePartnerDetail.position}:''"></h4>
 						<p th:text="${rePartnerDetail.achievement}"></p>
+						<input type="hidden" th:value="${rePartnerDetail.uid}" id="userId"/>
 					</div>
 				</div> 
 				<div class="detailtop_img">