package com.usoftchina.qywx.sdk.test;

import com.usoftchina.qywx.sdk.util.UrlUtils;

/**
 * @author yingp
 */
public class UrlTest {

    public static void main(String[] args) throws Exception {
        // https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwbb7e27c4decb7872&redirect_uri=http%3A%2F%2F2788e5c924.qicp.vip%2Fqywx%2Fapi%2Fauthorize%3Fagent%3DUas%26url%3DaHR0cDovLzI3ODhlNWM5MjQucWljcC52aXAvdWFzLw%3D%3D%26master%3D&response_type=code&scope=snsapi_base&state=#wechat_redirect
        System.out.println(UrlUtils.generateOAuthUrl("wwbb7e27c4decb7872", "", "Uas", "http://2788e5c924.qicp.vip/uas", "http://2788e5c924.qicp.vip/qywx/api/authorize","/"));
    }
}
