generated from root/miduo_server
修改openId生成逻辑
parent
469f44b4e2
commit
9c41511a5f
|
@ -44,8 +44,9 @@ public class UserVerfyDaoImpl implements UserVerfyDao {
|
||||||
DBObject doc = new BasicDBObject();
|
DBObject doc = new BasicDBObject();
|
||||||
doc.put("_id", name);
|
doc.put("_id", name);
|
||||||
doc.put("password", password);
|
doc.put("password", password);
|
||||||
int random = new Random(1024).nextInt();
|
// int random = new Random(1024).nextInt();
|
||||||
openId = MD5Util.encrypByMd5(mySign + random);
|
// openId = MD5Util.encrypByMd5(mySign + random);
|
||||||
|
openId = name;
|
||||||
doc.put("openId", openId);
|
doc.put("openId", openId);
|
||||||
//存储
|
//存储
|
||||||
mongoTemplate = connect.getMongoTemplete(Application.coreDb);
|
mongoTemplate = connect.getMongoTemplete(Application.coreDb);
|
||||||
|
|
Loading…
Reference in New Issue