package com.fjhx.constants;

public interface WxAppletConstant {

    String STORAGE_APPID = "wxe4a17c2bc0287527";
    String STORAGE_SECRET = "5129449cda3bb2232cde6f17f28549eb";

    /**
     * 获取登录token url
     */
    String GET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid="
            + STORAGE_APPID + "&secret=" + STORAGE_SECRET;

    /**
     * 获取openId url
     */
    String GET_OPEN_ID_URL = "https://api.weixin.qq.com/sns/jscode2session?appid="
            + WxAppletConstant.STORAGE_APPID + "&secret=" + WxAppletConstant.STORAGE_SECRET +
            "&js_code=%s&grant_type=authorization_code";

    /**
     * 发送模板消息
     */
    String SEND_MESSAGE_URL = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=";

}
