// Path: src/main/java/org/myazure/weixin/constant/MyazureConstants.java
// public class MyazureConstants {
// 	public static final String LOG_SPLIT_LINE = "========================MYAZURE====SPLIT====LINE========================";
// 	public static final String MYAZURE_WEIXIN_ADMIN_APPID="wx86c66f041e334ba4";
// 	public static final String MYAZURE_WEIXIN_ADMIN_APPSECRET="dbee2c24cc0dd3c8bb0805de2f4e4606";
// 	public static final String MYAZURE_WEIXIN_ADMIN_OPENID="o14wavxo7TN_zRBDD3c-mIigYR4U";
// 	
// 	public static String MYAZURE_SERVER_ID;
// 	public static String MYAZURE_APP_ID;
// 	public static String MYAZURE_APP_SECRET;
// 	public static String MYAZURE_ENCODE_TOKEN;
// 	public static String MYAZURE_ENCODE_KEY;
// 	public static String MYAZURE_APP_URL;
// 	public static String MYAZURE_COMPONENT_VERIFY_TICKET;
// 	public static String MYAZURE_COMPONENT_ACCESS_TOKEN;
// 	public static String MYAZURE_PRE_AUTH_CODE;
// 	public static WXBizMsgCrypt MYAZUZRE_WXBIZMSGCRYPT;
// 	
// 	public static final String ERR_OA_NOT_FOUNDED="OfficalAccountNotFound";
// 	
// }


import java.awt.image.BufferedImage;
import org.myazure.weixin.constant.MyazureConstants;
import weixin.popular.api.QrcodeAPI;
import weixin.popular.bean.qrcode.QrcodeTicket;
package org.myazure.weixin.handlers;



/**
 * 
 * @author WangZhen
 *
 */
public class QrCodeHandler {
	/**
	 * 创建 二维码
	 * 
	 * @param access_token
	 *            access_token
	 * @param expire_seconds
	 *            最大不超过604800秒（即30天）
	 * @param scene_id
	 *            场景值ID，32位非0整型 最多10万个
	 * @return QrcodeTicket
	 */
	public QrcodeTicket qrcodeCreate(String JSONData, int expire_seconds, int scene_id) {
		if (expire_seconds > 0) {
// Path: src/main/java/org/myazure/weixin/constant/MyazureConstants.java
// public class MyazureConstants {
// 	public static final String LOG_SPLIT_LINE = "========================MYAZURE====SPLIT====LINE========================";
// 	public static final String MYAZURE_WEIXIN_ADMIN_APPID="wx86c66f041e334ba4";
// 	public static final String MYAZURE_WEIXIN_ADMIN_APPSECRET="dbee2c24cc0dd3c8bb0805de2f4e4606";
// 	public static final String MYAZURE_WEIXIN_ADMIN_OPENID="o14wavxo7TN_zRBDD3c-mIigYR4U";
// 	
// 	public static String MYAZURE_SERVER_ID;
// 	public static String MYAZURE_APP_ID;
// 	public static String MYAZURE_APP_SECRET;
// 	public static String MYAZURE_ENCODE_TOKEN;
// 	public static String MYAZURE_ENCODE_KEY;
// 	public static String MYAZURE_APP_URL;
// 	public static String MYAZURE_COMPONENT_VERIFY_TICKET;
// 	public static String MYAZURE_COMPONENT_ACCESS_TOKEN;
// 	public static String MYAZURE_PRE_AUTH_CODE;
// 	public static WXBizMsgCrypt MYAZUZRE_WXBIZMSGCRYPT;
// 	
// 	public static final String ERR_OA_NOT_FOUNDED="OfficalAccountNotFound";
// 	
// }


// Path: src/main/java/org/myazure/weixin/handlers/QrCodeHandler.java
import java.awt.image.BufferedImage;
import org.myazure.weixin.constant.MyazureConstants;
import weixin.popular.api.QrcodeAPI;
import weixin.popular.bean.qrcode.QrcodeTicket;

package org.myazure.weixin.handlers;



/**
 * 
 * @author WangZhen
 *
 */
public class QrCodeHandler {
	/**
	 * 创建 二维码
	 * 
	 * @param access_token
	 *            access_token
	 * @param expire_seconds
	 *            最大不超过604800秒（即30天）
	 * @param scene_id
	 *            场景值ID，32位非0整型 最多10万个
	 * @return QrcodeTicket
	 */
	public QrcodeTicket qrcodeCreate(String JSONData, int expire_seconds, int scene_id) {
		if (expire_seconds > 0) {
			return QrcodeAPI.qrcodeCreateTemp(MyazureConstants.MYAZURE_COMPONENT_ACCESS_TOKEN, expire_seconds, scene_id);