|
|
@ -57,6 +57,8 @@ public class UserService { |
|
|
|
public static final int TRANSFER_SUCCESS = 3; |
|
|
|
public static final int TRANSFER_FAIL = -1; |
|
|
|
|
|
|
|
private Gson gson = new Gson(); |
|
|
|
|
|
|
|
|
|
|
|
public MatrixUser login(LoginReq req) { |
|
|
|
Assert.isTrue(req != null, "非法请求"); |
|
|
@ -108,7 +110,16 @@ public class UserService { |
|
|
|
|
|
|
|
public UserBo getUser(Integer uid) { |
|
|
|
MatrixUser u = userMapper.selectById(uid); |
|
|
|
return new UserBo(u); |
|
|
|
MatrixApp app = new MatrixApp(); |
|
|
|
UserBo res = new UserBo(u); |
|
|
|
if (!StringUtils.hasText(app.getUmeng())) { |
|
|
|
return res; |
|
|
|
} |
|
|
|
UmengConfigBo configBo = gson.fromJson(app.getUmeng(), UmengConfigBo.class); |
|
|
|
if (!configBo.bindWx) { |
|
|
|
res.wxOpenId = "-1";//不需要绑定微信
|
|
|
|
} |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
public void bindAliPay(Integer uid, String name, String aliPayAccount) { |
|
|
|