Browse Source

fix: 修改redis密码,修正新用户无id bug

master
Chen Lijun 2 years ago
parent
commit
9219f9d757
  1. 2
      bjyy-core/src/main/resources/prod/redis.properties
  2. 2
      bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/CoreController.java

2
bjyy-core/src/main/resources/prod/redis.properties

@ -1,5 +1,5 @@
redis.host=127.0.0.1
redis.port=6379
#redis.password=keepAwayFromGithub&CodeSave
redis.password=
redis.password=areowqr!@43ef
redis.index=1

2
bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/CoreController.java

@ -3,6 +3,7 @@ package com.wmeimob.bjyy.controller;
import java.util.Date;
import java.util.List;
import com.wmeimob.bjyy.util.UUIDUtil;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
@ -116,6 +117,7 @@ public class CoreController {
log.info("查找redis内的用户信息:" + usr);
if(usr == null){
usr = new User();
usr.setId(UUIDUtil.generateUUID());
}
usr.setRegisterNo(no);
usr.setUpdateAt(new Date());

Loading…
Cancel
Save