Skip to content

Commit 25cf370

Browse files
committed
将公众号相关的事件常量抽取出来,单独放于WxMpEventConstants类中
1 parent 951913b commit 25cf370

File tree

2 files changed

+72
-63
lines changed

2 files changed

+72
-63
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class WxConsts {
2424
public static final String XML_MSG_HARDWARE = "hardware";
2525
public static final String XML_TRANSFER_CUSTOMER_SERVICE = "transfer_customer_service";
2626

27-
2827
///////////////////////
2928
// 主动发送消息(即客服消息)的消息类型
3029
///////////////////////
@@ -89,68 +88,6 @@ public class WxConsts {
8988
public static final String EVT_TEMPLATESENDJOBFINISH = "TEMPLATESENDJOBFINISH";
9089
public static final String EVT_ENTER_AGENT = "enter_agent";
9190

92-
//以下为卡券相关事件
93-
public static final String EVT_CARD_PASS_CHECK = "card_pass_check";
94-
public static final String EVT_CARD_NOT_PASS_CHECK = "card_not_pass_check";
95-
public static final String EVT_USER_GET_CARD = "user_get_card";
96-
/**
97-
* 卡券转赠事件
98-
*/
99-
public static final String EVT_USER_GIFTING_CARD = "user_gifting_card";
100-
public static final String EVT_USER_DEL_CARD = "user_del_card";
101-
public static final String EVT_USER_CONSUME_CARD = "user_consume_card";
102-
public static final String EVT_USER_PAY_FROM_PAY_CELL = "user_pay_from_pay_cell";
103-
public static final String EVT_USER_VIEW_CARD = "user_view_card";
104-
public static final String EVT_USER_ENTER_SESSION_FROM_CARD = "user_enter_session_from_card";
105-
public static final String EVT_CARD_SKU_REMIND = "card_sku_remind"; // 库存报警
106-
/**
107-
* 会员卡内容更新事件
108-
*/
109-
public static final String EVT_UPDATE_MEMBER_CARD = "update_member_card";
110-
/**
111-
* 券点流水详情事件
112-
*/
113-
public static final String EVT_CARD_PAY_ORDER = "card_pay_order";
114-
115-
//以下为客服相关事件
116-
public static final String EVT_KF_CREATE_SESSION = "kf_create_session"; // 客服接入会话
117-
public static final String EVT_KF_CLOSE_SESSION = "kf_close_session"; // 客服关闭会话
118-
public static final String EVT_KF_SWITCH_SESSION = "kf_switch_session"; // 客服转接会话
119-
120-
public static final String EVT_POI_CHECK_NOTIFY = "poi_check_notify"; //门店审核事件推送
121-
public static final String EVT_SUBMIT_MEMBERCARD_USER_INFO = "submit_membercard_user_info"; //接收会员信息事件推送
122-
123-
//以下为微信认证事件
124-
/**
125-
* 资质认证成功
126-
*/
127-
public static final String EVT_QUALIFICATION_VERIFY_SUCCESS = "qualification_verify_success";
128-
/**
129-
* 资质认证失败
130-
*/
131-
public static final String EVT_QUALIFICATION_VERIFY_FAIL = "qualification_verify_fail";
132-
/**
133-
* 名称认证成功
134-
*/
135-
public static final String EVT_NAMING_VERIFY_SUCCESS = "naming_verify_success";
136-
/**
137-
* 名称认证失败
138-
*/
139-
public static final String EVT_NAMING_VERIFY_FAIL = "naming_verify_fail";
140-
/**
141-
* 年审通知
142-
*/
143-
public static final String EVT_ANNUAL_RENEW = "annual_renew";
144-
/**
145-
* 认证过期失效通知
146-
*/
147-
public static final String EVT_VERIFY_EXPIRED = "verify_expired";
148-
149-
/**
150-
* 微信摇一摇周边>>摇一摇事件通知
151-
*/
152-
public static final String EVT_SHAKEAROUND_USER_SHAKE = "ShakearoundUserShake";
153-
15491
///////////////////////
15592
// 上传多媒体文件的类型
15693
///////////////////////
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
package me.chanjar.weixin.mp.constant;
2+
3+
/**
4+
* <pre>
5+
* 微信公众号事件的相关常量
6+
* Created by Binary Wang on 2017-5-10.
7+
* @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a>
8+
* </pre>
9+
*/
10+
public class WxMpEventConstants {
11+
//以下为卡券相关事件
12+
public static final String EVT_CARD_PASS_CHECK = "card_pass_check";
13+
public static final String EVT_CARD_NOT_PASS_CHECK = "card_not_pass_check";
14+
public static final String EVT_USER_GET_CARD = "user_get_card";
15+
/**
16+
* 卡券转赠事件
17+
*/
18+
public static final String EVT_USER_GIFTING_CARD = "user_gifting_card";
19+
public static final String EVT_USER_DEL_CARD = "user_del_card";
20+
public static final String EVT_USER_CONSUME_CARD = "user_consume_card";
21+
public static final String EVT_USER_PAY_FROM_PAY_CELL = "user_pay_from_pay_cell";
22+
public static final String EVT_USER_VIEW_CARD = "user_view_card";
23+
public static final String EVT_USER_ENTER_SESSION_FROM_CARD = "user_enter_session_from_card";
24+
public static final String EVT_CARD_SKU_REMIND = "card_sku_remind"; // 库存报警
25+
/**
26+
* 会员卡内容更新事件
27+
*/
28+
public static final String EVT_UPDATE_MEMBER_CARD = "update_member_card";
29+
/**
30+
* 券点流水详情事件
31+
*/
32+
public static final String EVT_CARD_PAY_ORDER = "card_pay_order";
33+
34+
//以下为客服相关事件
35+
public static final String EVT_KF_CREATE_SESSION = "kf_create_session"; // 客服接入会话
36+
public static final String EVT_KF_CLOSE_SESSION = "kf_close_session"; // 客服关闭会话
37+
public static final String EVT_KF_SWITCH_SESSION = "kf_switch_session"; // 客服转接会话
38+
public static final String EVT_POI_CHECK_NOTIFY = "poi_check_notify"; //门店审核事件推送
39+
public static final String EVT_SUBMIT_MEMBERCARD_USER_INFO = "submit_membercard_user_info"; //接收会员信息事件推送
40+
41+
//以下为微信认证事件
42+
/**
43+
* 资质认证成功
44+
*/
45+
public static final String EVT_QUALIFICATION_VERIFY_SUCCESS = "qualification_verify_success";
46+
/**
47+
* 资质认证失败
48+
*/
49+
public static final String EVT_QUALIFICATION_VERIFY_FAIL = "qualification_verify_fail";
50+
/**
51+
* 名称认证成功
52+
*/
53+
public static final String EVT_NAMING_VERIFY_SUCCESS = "naming_verify_success";
54+
/**
55+
* 名称认证失败
56+
*/
57+
public static final String EVT_NAMING_VERIFY_FAIL = "naming_verify_fail";
58+
/**
59+
* 年审通知
60+
*/
61+
public static final String EVT_ANNUAL_RENEW = "annual_renew";
62+
/**
63+
* 认证过期失效通知
64+
*/
65+
public static final String EVT_VERIFY_EXPIRED = "verify_expired";
66+
67+
//以下为微信摇一摇相关事件
68+
/**
69+
* 微信摇一摇周边>>摇一摇事件通知
70+
*/
71+
public static final String EVT_SHAKEAROUND_USER_SHAKE = "ShakearoundUserShake";
72+
}

0 commit comments

Comments
 (0)