package com.sino.weixin.oauth.util;

import java.util.Date;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Constants {
	
//	public final static String AppId = "wx885c2d127e53bcbb";   //   救援平台     
//	public final static String AppSecret = "da07ccfc1c99bf3ab9e2fbcb799f10aa";     

	//本地测试公众号
	public final static String AppId = "wx079a107838e9dc0f";      
	public final static String AppSecret = "8e84eaa0abd41e80e0985283b2cb5153";
	
	public final static String scope = "snsapi_userinfo";
	
	public static Date SIGN_TIME = null;
	public static String ACCESS_TOKEN = "";
	public static String API_TICKET = "";
	public static String NONCESTR = "Wm3WZYTPz0wzccnW";
	public static String SHA_SIGNATURE = "";
	public static String TIME_STAMP = "";
	
	//推送模板地址
//	public final static String TEMPLATE_URL="http://sino-assist.vaiwan.com";  //本地测试
	public final static String TEMPLATE_URL="http://www.sino-assistance.com.cn";  //测试
//	public final static String TEMPLATE_URL="http://www.sino-assistance.cn";  //正式
	
	//远程连接地址（测试）
//	public final static String url="http://175.102.6.163:8380/rescueCompanyDispatchServlet.do";
	public final static String url="http://www.sino-assist.com:8099/rescueCompanyDispatchServlet.do";
	
	//正式
//	public final static String url="http://www.sinoassistance.com:8380/rescueCompanyDispatchServlet.do";
	
	//连接池对象
	public final static BlockingQueue<Runnable> workQueue=new LinkedBlockingDeque<Runnable>();
	public final static ThreadPoolExecutor poolExecutor=new ThreadPoolExecutor(20, 21, 60, TimeUnit.SECONDS, workQueue);
}
