You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							32 lines
						
					
					
						
							980 B
						
					
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							980 B
						
					
					
				package com.ynxbd.common.action.pay;
 | 
						|
 | 
						|
import com.ynxbd.common.action.base.BaseAction;
 | 
						|
import com.ynxbd.common.result.Result;
 | 
						|
import com.ynxbd.wx.config.WeChatConfig;
 | 
						|
import com.ynxbd.wx.wxfactory.WxAuthHelper;
 | 
						|
import lombok.extern.slf4j.Slf4j;
 | 
						|
import org.apache.struts2.convention.annotation.Action;
 | 
						|
import org.apache.struts2.convention.annotation.Namespace;
 | 
						|
 | 
						|
 | 
						|
@Slf4j
 | 
						|
@Namespace("/wx_auth")
 | 
						|
public class WxAuthAction extends BaseAction {
 | 
						|
 | 
						|
    @Action("is_auth")
 | 
						|
    public Result is_auth() throws Exception {
 | 
						|
        return WxAuthHelper.isAuth(request);
 | 
						|
    }
 | 
						|
 | 
						|
    @Action("u_auth")
 | 
						|
    public Result u_auth() {
 | 
						|
        String auth = WxAuthHelper.auth(request, response, true);
 | 
						|
        return Result.redirect(WeChatConfig.getBaseDomain() + auth);
 | 
						|
    }
 | 
						|
 | 
						|
    @Action("b_auth")
 | 
						|
    public Result b_auth() {
 | 
						|
        String auth = WxAuthHelper.auth(request, response, true);
 | 
						|
        return Result.redirect(WeChatConfig.getBaseDomain() + auth);
 | 
						|
    }
 | 
						|
}
 | 
						|
 |