Commit c79bb230 authored by m1991's avatar m1991

后台接口——用户与资讯后台接口

parent fcefabae
...@@ -142,9 +142,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U ...@@ -142,9 +142,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
if (null == user){ if (null == user){
Map map = new HashMap(); Map map = new HashMap();
R.error(1, "邀请码填写无效!邀请人不存在,请重新填写!"); R.error(1, "邀请人不存在,请重新填写!");
map.put("code", 1); map.put("code", 1);
map.put("msg", "邀请码填写无效!邀请人不存在,请重新填写!"); map.put("msg", "邀请人不存在,请重新填写!");
return map; return map;
// String byqm = user.getBeInvitedCode(); // String byqm = user.getBeInvitedCode();
} }
...@@ -166,9 +166,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U ...@@ -166,9 +166,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
//判断是否存在被邀请人的用户 //判断是否存在被邀请人的用户
if (null == idb) { if (null == idb) {
Map map = new HashMap(); Map map = new HashMap();
R.error(1, "邀请码填写无效!邀请人不存在,请重新填写!"); R.error(1, "邀请人不存在,请重新填写!");
map.put("code", 1); map.put("code", 1);
map.put("msg", "邀请码填写无效!邀请人不存在,请重新填写!"); map.put("msg", "邀请人不存在,请重新填写!");
return map; return map;
} }
//推荐人的id //推荐人的id
......
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