package com.tangguo;

import me.chanjar.weixin.cp.api.WxCpOAuth2Service;
import me.chanjar.weixin.cp.api.WxCpService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.test.context.ActiveProfiles;

import javax.annotation.Resource;

/**
 *
 *
 * @author 谈笑
 * @createTime 2025-09-01 16:18:29 星期一
 */
@ActiveProfiles("dev")
@SpringBootTest
public class ApplicationTest {

	@Resource
	private JmsTemplate jmsTemplate;

	@Resource
	private WxCpService mobileWxCpService;


	@Test
	public void test() {

		WxCpOAuth2Service oauth2Service = this.mobileWxCpService.getOauth2Service();
		System.out.println(oauth2Service.buildAuthorizationUrl("https://test.tangguo.ren/bbs/h5/pages/login/login/", ""));

	}

}
