| | |
| | | import com.ks.app.service.inter.user.*; |
| | | import com.ks.app.service.manager.VerifyCodeManager; |
| | | import com.ks.app.utils.AliyunOneKeyLoginUtil; |
| | | import org.apache.zookeeper.Login; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.yeshi.utils.PropertiesUtil; |
| | | import org.yeshi.utils.StringUtil; |
| | | import org.yeshi.utils.entity.wx.WXAPPInfo; |
| | | import org.yeshi.utils.entity.wx.WeiXinUser; |
| | | import org.yeshi.utils.wx.WXAppLoginUtil; |
| | | import org.yeshi.utils.wx.WXUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Properties; |
| | | import java.util.UUID; |
| | | |
| | | @Service |
| | |
| | | loginInfo.setPhone(mobile); |
| | | } else { |
| | | //验证码登录 |
| | | if (!verifyCodeManager.isPhoneCodeRight(loginInfo.getPhone(), loginInfo.getVcode())) { |
| | | if (!verifyCodeManager.isPhoneCodeRight(loginInfo.getSystem(), loginInfo.getPhone(), loginInfo.getVcode())) { |
| | | throw new LoginException("验证码出错"); |
| | | } |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public void unRegister(Long uid) { |
| | | UserInfo update = new UserInfo(); |
| | | update.setId(uid); |
| | | update.setStatus(UserInfo.STATUS_OWN_DELETE); |
| | | userInfoService.update(update); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @return void |
| | | * @author hxh |