package com.kym.common.utils.wx;


/**
 * 微信公众开发配置类
 * create by yaop at 2019/4/6 0:05
 */
public class WxPbConfig {


    //TODO
//    static String TOKEN = ConfigUtil.getProperty("wx.pb.token");
//    //微信支付分配的公众账号ID（企业号corpid即为此appId）
//  public  static final String PUBLIC_APP_ID = ConfigUtil.getProperty("wx.pb.appid");
//    public static final String PUBLIC_APP_SECRET = ConfigUtil.getProperty("wx.pb.appsecret");

    //微信支付分配的公众账号ID（企业号corpid即为此appId）
    public static final String PUBLIC_APP_ID = "wxc175b08b1b71cd5a";
    public static final String PUBLIC_APP_SECRET = "91182f3baa3bcd041837d73b0d1f1d63";
    //场景值
    static final int SCENE_订阅 = 100;
    static final int SCENE_取消订阅 = 101;
    /**
     * 刷新微信接口授权token
     */
    public static String API_REFRESH_TOKEN = "https://api.weixin.qq.com/sns/oauth2/refresh_token?grant_type=refresh_token&appid=%s&refresh_token=%s";
    static String TOKEN = "Yeswash";
    /**
     * 获取微信接口授权token
     */
    static String API_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";
    /**
     * 查询用户关注状态
     */
    static String API_SUBSCRIBE = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=%s&openid=%s";
    /**
     * 获取微信api_ticket
     */
    static String API_JS_APITICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=%s";
    /**
     * 素材文件下载
     */
    static String API_MEDIAFILE = "https://file.api.weixin.qq.com/cgi-bin/media/get?media_id=%s&access_token=%s";
    /**
     * 获取openId、unionId
     */
    static String API_OPENID = "https://api.weixin.qq.com/sns/oauth2/access_token?grant_type=authorization_code&appid=%s&secret=%s&code=%s";
    /**
     * 获取用户基本信息
     */
    static String API_USER_INFO = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=%s&openid=%s&lang=zh_CN";
    /**
     * 推广二维码
     */
    static String API_QR_CODE = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=%s";
    /**
     * 获取公众号模板列表
     */
    static String API_TEMPLATE_LIST = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=%s";
    /**
     * 发送公众号模板消息
     */
    static String API_SEND_TEMPLATE_MSG = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s";

    /**
     * 发送客服消息
     */
    static String API_SEND_KF_MSG = "https://https://api.weixin.qq.com/cgi-bin/message/mass/send?access_token=%s";

}
