| | |
| | | import com.yeshi.buwan.domain.user.LoginUserExtra; |
| | | import com.yeshi.buwan.exception.user.LoginUserException; |
| | | import com.yeshi.buwan.exception.PPTVException; |
| | | import com.yeshi.buwan.pptv.PPTVApiUtil; |
| | | import com.yeshi.buwan.pptv.PPTVUtil; |
| | | import com.yeshi.buwan.videos.pptv.PPTVApiUtil; |
| | | import com.yeshi.buwan.videos.pptv.PPTVUtil; |
| | | import com.yeshi.buwan.service.inter.LoginUserService; |
| | | import org.springframework.stereotype.Service; |
| | | import org.yeshi.utils.StringUtil; |
| | |
| | | throw new LoginUserException("手机号已被其他账户绑定"); |
| | | } |
| | | user.setPhone(phone); |
| | | loginUserDao.update(user); |
| | | loginUserDao.updateSelective(user); |
| | | } |
| | | |
| | | @Override |
| | |
| | | extra.setDevice(user.getDevice()); |
| | | extra.setPptvUid(PPTVUtil.getPPTVUid(uid)); |
| | | //TODO 初始化附加信息 |
| | | loginUserDao.update(user); |
| | | loginUserDao.updateSelective(user); |
| | | loginUserExtraDao.save(extra); |
| | | return extra; |
| | | } |