瀏覽代碼

消息推送添加unionid

半月无霜 4 年之前
父節點
當前提交
ff2fd845eb

+ 4 - 0
ymall/src/main/java/com/liangjian11/ymall/service/impl/UserRoleServiceImpl.java

@@ -123,6 +123,10 @@ public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> i
     }
     if (userRole != null && userRole.getUserRoleStatus().equals(1)) { //正常
       if (type == 1) {
+        if(StringUtils.isBlank(account.getMobile())){
+          res.sendRedirect(redirectPathSource.getFillInfo());
+          return;
+        }
         res.sendRedirect(redirectPathSource.getPersonalInfo());
       } else if (type == 2) {
         res.sendRedirect(redirectPathSource.getPartnerHome());

+ 1 - 1
ymall/src/test/java/com/liangjian11/ymall/DomainTest.java

@@ -37,7 +37,7 @@ public class DomainTest {
 		client.useService("http://hprose.360lj.com/EncryptionAlgorithm/");// 正式
 		//client.useService("http://t-hprose.360lj.com/EncryptionAlgorithm/");// 测试
 		String result = (String) client.invoke("EncryptionAlgorithmService_AEncrypt",
-				new Object[]{"123456", "123456e10adc3949ba59abbe56e057f20f883e", "18507323703"});
+				new Object[]{"123456", "123456e10adc3949ba59abbe56e057f20f883e", "18980602132"});
 		System.out.println(result);
 		result = (String) client.invoke("EncryptionAlgorithmService_ADecrypt", new Object[]{"123456", "123456e10adc3949ba59abbe56e057f20f883e", "BBE02AB90D400FE6C7E92DD7C0EA72DE"});
 		System.out.println(result);