jiapeng 7 years ago
parent
commit
1b2665eb87

+ 27 - 0
src/main/java/com/ekexiu/portal/oauth/BaseOAuthHandler.java

@ -0,0 +1,27 @@
1
package com.ekexiu.portal.oauth;
2

3
import org.jfw.util.exception.JfwBaseException;
4

5
public class BaseOAuthHandler implements OAuthHandler {
6
	private String type;
7
	
8
	public void setType(String type){
9
		this.type = type;
10
	}
11

12
	@Override
13
	public String getType() {
14
		return type;
15
	}
16

17
	@Override
18
	public String getLoginUrl() {
19
		throw new UnsupportedOperationException();
20
	}
21

22
	@Override
23
	public OAuthUser login(String code) throws JfwBaseException {
24
		throw new UnsupportedOperationException();
25
	}
26

27
}

+ 5 - 1
src/main/resources/project-test-dev.properties

@ -275,4 +275,8 @@ oauthService_handlers.map-key-1=weixin
275 275
oauthService_handlers.map-val-1-ref=com_ekexiu_portal_oauth_weixin_WeiXinHandler
276 276
com_ekexiu_push_service_PushService.enable::boolean=false
277 277
com_ekexiu_portal_cms_TemplateService.source::java.io.File=/kexiu/www/html1/fw_template_r3254
278
com_ekexiu_portal_cms_TemplateService.dir::java.io.File=/kexiu/webdata1/shtml
278
com_ekexiu_portal_cms_TemplateService.dir::java.io.File=/kexiu/webdata1/shtml
279
com_ekexiu_portal_oauth_BaseOAuthHandler=com.ekexiu.portal.oauth.BaseOAuthHandler
280
com_ekexiu_portal_oauth_BaseOAuthHandler.type=weixinxiaochengxu
281
oauthService_handlers.map-key-2=weixinxiaochengxu
282
oauthService_handlers.map-val-2-ref=com_ekexiu_portal_oauth_BaseOAuthHandler

+ 5 - 1
src/main/resources/project-test.properties

@ -275,4 +275,8 @@ oauthService_handlers.map-key-1=weixin
275 275
oauthService_handlers.map-val-1-ref=com_ekexiu_portal_oauth_weixin_WeiXinHandler
276 276
com_ekexiu_push_service_PushService.enable::boolean=true
277 277
com_ekexiu_portal_cms_TemplateService.source::java.io.File=/kexiu/www/html/fw_template_r3254
278
com_ekexiu_portal_cms_TemplateService.dir::java.io.File=/kexiu/webdata/shtml
278
com_ekexiu_portal_cms_TemplateService.dir::java.io.File=/kexiu/webdata/shtml
279
com_ekexiu_portal_oauth_BaseOAuthHandler=com.ekexiu.portal.oauth.BaseOAuthHandler
280
com_ekexiu_portal_oauth_BaseOAuthHandler.type=weixinxiaochengxu
281
oauthService_handlers.map-key-2=weixinxiaochengxu
282
oauthService_handlers.map-val-2-ref=com_ekexiu_portal_oauth_BaseOAuthHandler

+ 5 - 0
src/main/resources/project.properties

@ -277,3 +277,8 @@ com_ekexiu_push_service_PushService.appKey=xXqSF9Gmb69SG37XVT3lL2
277 277
com_ekexiu_push_service_PushService.appId=vGS5OBXtmV6SrDVJDQ8dGA
278 278
com_ekexiu_portal_cms_TemplateService.source::java.io.File=/kexiu/www/html/fw_template_r3254
279 279
com_ekexiu_portal_cms_TemplateService.dir::java.io.File=/kexiu/webdata/shtml
280
com_ekexiu_portal_oauth_BaseOAuthHandler=com.ekexiu.portal.oauth.BaseOAuthHandler
281
com_ekexiu_portal_oauth_BaseOAuthHandler.type=weixinxiaochengxu
282
oauthService_handlers.map-key-2=weixinxiaochengxu
283
oauthService_handlers.map-val-2-ref=com_ekexiu_portal_oauth_BaseOAuthHandler
284