package org.mp.api.wxlogo;

import net.sf.json.JSONObject;
import org.mp.api.core.exception.WexinReqException;
import org.mp.api.core.req.WeiXinReqService;
import org.mp.api.coupon.location.model.LocationInfo;

import java.io.InputStream;

/** 
 * @author 作者 lisw: 
 * @version 创建时间：2016年11月14日 下午3:58:39 
 * 类说明 
 */
public class JwLogoApi {
	
	public static JSONObject logoApi(String access_token,String path,InputStream stream){
		LocationInfo locationInfo = new LocationInfo();
		locationInfo.setAccess_token(access_token);
		locationInfo.setFilePathName(path);
		locationInfo.setBuffer(stream);
		JSONObject rtnJson=new JSONObject();
		try {
			rtnJson = WeiXinReqService.getInstance().doWeinxinReqJson(locationInfo);
		} catch (WexinReqException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return rtnJson;
	}

}
 