修改openId生成逻辑

main
grimm 2025-04-30 14:57:56 +08:00
parent 469f44b4e2
commit 9c41511a5f
1 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@ public class UserVerfyDaoImpl implements UserVerfyDao {
DBObject doc = new BasicDBObject();
doc.put("_id", name);
doc.put("password", password);
int random = new Random(1024).nextInt();
openId = MD5Util.encrypByMd5(mySign + random);
// int random = new Random(1024).nextInt();
// openId = MD5Util.encrypByMd5(mySign + random);
openId = name;
doc.put("openId", openId);
//存储
mongoTemplate = connect.getMongoTemplete(Application.coreDb);