xuekang
2024-05-11 bac0878349a1db23e7b420ea164e22fb9db73a99
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package com.nuvole.constants;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
 
/**
 * 外网服务调用
 *
 * @Author: lc
 * @Date: 2019/7/25 14:44
 */
@Component
public class ServiceConstants {
 
    /**
     * 对外是否走外网服务调用【true 是 false 否】
     */
    public static Boolean SERVICE_TYPE;
 
 
    @Value("${service-type}")
    public void setType(Boolean type) {
        SERVICE_TYPE = type;
    }
 
 
    /**
     * 调用统一url
     */
    public static final String SERVICE_URL = "http://localhost:9080";
 
    /**
     * 商户订单查询接口
     */
    public static final String MERCHANT_PAY_RESULT = SERVICE_URL + "/v1/web/pay/queryorder";
 
    /**
     * 查询物流地址
     */
    public static final String SERVICE_EXPRESS_URL = SERVICE_URL + "/v1/shop/web/express/queryExpress";
 
    /**
     * 逆地址解析(腾讯地图)
     */
    public static final String SERVICE_TENCENT_LOCATION_URL = SERVICE_URL + "/v1/shop/web/map/tencent/location";
 
    /**
     * 小程序支付地址
     */
    public static final String SERVICE_UNIFIED_URL = SERVICE_URL + "/v1/web/pay/miniProgramPay";
 
    /**
     * B扫C支付地址
     */
    public static final String SERVICE_B_SWEEP_C_URL = SERVICE_URL + "/v1/web/pay/bSweepCPay";
    /**
     * 根据授权码(付款码)获取用户ID 地址
     */
    public static final String SERVICE_AUTHCODE2USERID_URL = SERVICE_URL + "/apiweb/unitorder/authcodetouserid";
 
    /**
     * b扫c支付结果查询地址
     */
    public static final String SERVICE_PAY_RESULT_URL = SERVICE_URL + "/v1/web/pay/bSweepCPayResult";
 
    /**
     * 短信地址
     */
    public static final String SERVICE_SMS_URL = SERVICE_URL + "/v1/sms/sendSMS";
 
    /**
     * 微信jscode转SessionKey地址
     */
    public static final String SERVICE_JSCODE2SESSION_URL = SERVICE_URL + "/v1/sns/jscode2session";
 
    /**
     * 微信获取AccessToken
     */
    public static final String SERVICE_TOKEN_URL = SERVICE_URL + "/v1/cgi-bin/token";
    /**
     * 微信获取 jsapiTicket
     */
    public static final String SERVICE_JSAPITICKET_URL = SERVICE_URL + "/v1/cgi-bin/jsapiTicket";
 
    /**
     * 微信公众号获取access_token
     */
    public static final String SERVICE_ACCESS_TOKEN_URL = SERVICE_URL + "/v1/sns/oauth2/access_token";
 
    /**
     * 微信公众号获取用户信息
     */
    public static final String SERVICE_USERINFO_URL = SERVICE_URL + "/v1/sns/userinfo";
 
    /**
     * 微信获取小程序码(前提是已发布)
     */
    public static final String SERVICE_WXACODEUNLIMIT_URL = SERVICE_URL + "/v1/wxa/getwxacodeunlimit";
 
    /**
     * 微信推送消息
     */
    public static final String SERVICE_TEMPLATE_SEND_URL = SERVICE_URL + "/v1/cgi-bin/message/wxopen/template/send";
 
    /**
     * 微信订阅消息-推送
     */
    public static final String SERVICE_SUBSCRIBER_SEND_URL = SERVICE_URL + "/v1/cgi-bin/message/wxopen/subscribe/send";
 
    /**
     * 列表导出
     */
    public static final String SERVICE_EXPORT_TABLE_URL = SERVICE_URL + "/v1/export/table";
 
    /**
     * 极光推送
     */
    public static final String SERVICE_JG_PUSH_URL = SERVICE_URL + "/v1/jg/push";
 
    /**
     * 百度语音
     */
    public static final String SERVICE_BAI_DU_API = SERVICE_URL + "/v1/merchant/app/baidu/api/speech";
 
    /**
     * 个推(单推)
     */
    public static final String SERVICE_GE_TUI_URL = SERVICE_URL + "/v1/gt/push";
 
    /**
     * 个推(推送一个列表)
     */
    public static final String SERVICE_GE_TUI_LIST_URL = SERVICE_URL + "/v1/gt/pushList";
 
 
}