Commit 19341156 authored by m1991's avatar m1991

登录模块——用户发送短信时-替换验证码功能修复

parent 51259ffe
......@@ -166,7 +166,7 @@ public class UploadServiceImpl implements UploadService {
String fileName1=null;
// 要上传的目标文件存放的绝对路径
// final String localPath = path;
Long time = new Date().getTime();
Long time = System.currentTimeMillis();
String localPath = "/upload/";
Map<String, Object> result = new HashMap<String, Object>();//一个文件上传的结果
String msg = "";//上传结果信息
......
......@@ -152,7 +152,7 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
int idbc = Integer.valueOf(idb);
int ida = user.getId();
//判断被邀请用户的创建时间是否比推荐人的用户时间晚
if (idbc > ida) {
if (idbc < ida) {
Map map = new HashMap();
R.error(1, "注册失败!邀请码无效,请重新填写!");
map.put("code:", 1);
......@@ -204,9 +204,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
//递归向上修改团队用户信息表
teamUserInfo(beInvitedCode);
Map map = new HashMap();
R.ok("直推表普通用户数量+1成功!", 0);
R.ok("注册成功!", 0);
map.put("code:", 0);
map.put("msg:", "直推表普通用户数量+1成功");
map.put("msg:", "注册成功!");
return map;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment