提交 07994066 作者: 刘明祎-运维用途

修改bug

上级 4e64fd6b
......@@ -82,6 +82,10 @@ public class UserPointsServiceImpl implements UserPointsService {
@Override
public ResultBody change(ChangeUserPointVO changePoint) {
UserPointsDO userPointsDO = userPointsDao.selectUserPoints(changePoint.getUserAccountId());
//如果邀请人没有绑定手机号 是没有积分的
if(userPointsDO == null) {
return ResultBody.success();
}
userPointsDO.setTotalPoints(userPointsDO.getTotalPoints() + changePoint.getChangePoint());
// 修改用户积分
userPointsDao.updatePoints(userPointsDO);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论