ZQN
2024-06-17 b1ff19545212508d3f65741ab889f0b6df82a511
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.project.common.constant;
 
/**
 * 腾讯应用常量信息
 *
 * @author manton
 */
public class WechatConstants
{
 
    /**
     * 微信交易类型
     */
    public static final String JSAPI_TRADE_TYPE = "JSAPI";
 
    /**
     * APP交易类型
     */
    public static final String APP_TRADE_TYPE = "APP";
 
    /**
     * 签名方式
     */
    public static final String SIGN_TYPE = "MD5";
 
    /**
     * 微信小程序统一下单API
     */
    public static final String UNIFIED_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
 
    /**
     * 获取微信公众号access_token
     */
    public static final String WEIXIN_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token";
 
    /**
     * 获取用户信息
     */
    public static final String USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo";
 
 
    /**
     * 获取用户授权手机号
     */
    public static final String WEIXIN_GET_USERPHONENUMBER_URL = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=";
 
    /**
     * 获取用户小程序openid
     */
    public static final String WEIXIN_JSCODE2SESSION_URL = "https://api.weixin.qq.com/sns/jscode2session";
 
 
 
    /**
     * 微信回调
     */
    public static final String WX_CALL_BACK_URL = "http://ss.mantanghui.com:8089/payment/wx/wxCallBackUrl";
 
 
 
 
    public static final Integer NONCE_STR_LENGTH = 16;
}