package cn.wise.sc.acquisition.business.util.weixin;

import org.springframework.beans.factory.annotation.Value;

/**
 * 功能说明：企业微信全局接口地址
 * 修改说明：
 * @author zhenglibing
 * @date 2018年1月8日 下午2:27:43
 * @version 0.1
 */

public interface Global {

	//企业ID
	public final static String corpId = "ww348f91b2573c1867";

	//企业应用的id，整型。可在应用的设置页面查看
	public final static int agentId = 1000002;
	public final static int agentIdPC = 1000003;

	//应用的凭证密钥
	public final static String agentSecret = "gFa_7XvXtCaoeAYERzjRwwz_OTJkJfgBb8weOKjmI3o";
	public final static String agentSecretPC = "itCLYcwl9ggA9VfZam_iz96Ikp9StDFfVr4Adb0yY7A";

	//编译后的回调地址
	public final static String backUrl = "https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system";
	//实验室管理系统链接
	public final static String systemUrl =
			"<a href=\"https://open.weixin.qq.com/connect/oauth2/authorize?appid="+corpId+"&redirect_uri="+backUrl+"%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect\">物化检测流程" + "</a>,";

	public final static String systemUrlTmp =
			"<a href=\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww348f91b2573c1867&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect\">物化检测流程" + "</a>,";

	/**
	 * 微信公众平台，获取AccessToken的接口地址，Https请求方式：GET
	 * 接口地址示例：https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=id&corpsecret=secrect
	 */
	public static final String ACCESSTOKENURL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken";


	/**
	 * 微信公众平台，获取访问用户身份的接口地址，Https请求方式：GET
	 * 接口地址示例：https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
	 */
	public static final String USERINFOURL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo";


	/**
	 * 微信公众平台，获取访问用户信息的接口地址，Https请求方式：GET
	 * 接口地址示例：https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&userid=USERID
	 */
	public static final String USERURL = "https://qyapi.weixin.qq.com/cgi-bin/user/get";

	public static final String ticket = "https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket";
	/**
	 * 微信公众平台，发送应用消息的接口地址，Https请求方式：GET
	 * 接口地址示例：https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN
	 */
	public static final String SENDMESSAGE = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN";


	public static final String userTicket = "https://qyapi.weixin.qq.com/cgi-bin/ticket/get";




}
