token为正值

master
jiahuiwen 2019-01-04 18:33:08 +08:00
parent de8d84f27f
commit 1be23f4b78
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class GetUserController extends HttpServlet {
BaseGlobal.getInstance().mongoDBPool.save(_COLLECTION_NAME, dbObject);
}
Random random = new Random();
int token = random.nextInt();
int token = random.nextInt(Integer.MAX_VALUE);
uid = (int) userInfos.get(0).get("uid");
res.put("uid", uid);
res.put("token", token);