Browse Source

新增电话号码验证

chenweida 7 years ago
parent
commit
b573e51291
1 changed files with 7 additions and 3 deletions
  1. 7 3
      svr/svr-demo/src/main/java/com/yihu/jw/service/ClientService.java

+ 7 - 3
svr/svr-demo/src/main/java/com/yihu/jw/service/ClientService.java

@ -24,13 +24,19 @@ import java.util.Set;
 */
@Component("baseClientDetailsService")
public class ClientService implements ClientServiceProvider {
    /**
     * 根据自己的业务查询表 返回相关的平台用户信息
     * @param clientId
     * @return
     * @throws ClientRegistrationException
     */
    @Override
    public ClientDetails loadClientByClientId(String clientId) throws ClientRegistrationException {
//        SaasDO saasDO = saasDao.findByAppId(clientId);
//        if (saasDO == null) {
//            throw new ClientRegistrationException("用户没有注册");
//        }
        SaasDO baseClientDetails = new SaasDO();
        baseClientDetails.setAppId("cwd");
        baseClientDetails.setAppSecret("cwd");
@ -38,6 +44,4 @@ public class ClientService implements ClientServiceProvider {
        baseClientDetails.getAuthorizedGrantTypes();
        return baseClientDetails;
    }
}