/**
 * Copyright (c) 2011-2015, Unas 小强哥 (unas@qq.com).
 * <p/>
 * Licensed under the Apache License, Version 2.0 (the "License");
 */

package com.jfinal.weixin.sdk.api;

import com.jfinal.kit.HttpKit;
import com.jfinal.weixin.sdk.kit.ParaMap;

/**
 * 微信卡券接口签名凭证api_ticket
 * https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=wx_card
 */
public class JsTicketApi
{
	private static String apiUrl = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=";

	public static ApiResult getTicket() {
		ParaMap pm = ParaMap.create("access_token", AccessTokenApi.getAccessToken().getAccessToken()).put("type", "wx_card");
		return new ApiResult(HttpKit.get(apiUrl, pm.getData()));
	}
}

@@ -474,30 +474,16 @@
 etticket
-?access_token=
 %22;%0A%0A%09pub

修正js_ticket API请求地址错误