mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	将公众号相关的事件常量抽取出来,单独放于WxMpEventConstants类中
This commit is contained in:
		| @ -24,7 +24,6 @@ public class WxConsts { | |||||||
|   public static final String XML_MSG_HARDWARE = "hardware"; |   public static final String XML_MSG_HARDWARE = "hardware"; | ||||||
|   public static final String XML_TRANSFER_CUSTOMER_SERVICE = "transfer_customer_service"; |   public static final String XML_TRANSFER_CUSTOMER_SERVICE = "transfer_customer_service"; | ||||||
|  |  | ||||||
|  |  | ||||||
|   /////////////////////// |   /////////////////////// | ||||||
|   // 主动发送消息(即客服消息)的消息类型 |   // 主动发送消息(即客服消息)的消息类型 | ||||||
|   /////////////////////// |   /////////////////////// | ||||||
| @ -89,68 +88,6 @@ public class WxConsts { | |||||||
|   public static final String EVT_TEMPLATESENDJOBFINISH = "TEMPLATESENDJOBFINISH"; |   public static final String EVT_TEMPLATESENDJOBFINISH = "TEMPLATESENDJOBFINISH"; | ||||||
|   public static final String EVT_ENTER_AGENT = "enter_agent"; |   public static final String EVT_ENTER_AGENT = "enter_agent"; | ||||||
|  |  | ||||||
|   //以下为卡券相关事件 |  | ||||||
|   public static final String EVT_CARD_PASS_CHECK = "card_pass_check"; |  | ||||||
|   public static final String EVT_CARD_NOT_PASS_CHECK = "card_not_pass_check"; |  | ||||||
|   public static final String EVT_USER_GET_CARD = "user_get_card"; |  | ||||||
|   /** |  | ||||||
|    * 卡券转赠事件 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_USER_GIFTING_CARD = "user_gifting_card"; |  | ||||||
|   public static final String EVT_USER_DEL_CARD = "user_del_card"; |  | ||||||
|   public static final String EVT_USER_CONSUME_CARD = "user_consume_card"; |  | ||||||
|   public static final String EVT_USER_PAY_FROM_PAY_CELL = "user_pay_from_pay_cell"; |  | ||||||
|   public static final String EVT_USER_VIEW_CARD = "user_view_card"; |  | ||||||
|   public static final String EVT_USER_ENTER_SESSION_FROM_CARD = "user_enter_session_from_card"; |  | ||||||
|   public static final String EVT_CARD_SKU_REMIND = "card_sku_remind"; // 库存报警 |  | ||||||
|   /** |  | ||||||
|    * 会员卡内容更新事件 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_UPDATE_MEMBER_CARD = "update_member_card"; |  | ||||||
|   /** |  | ||||||
|    * 券点流水详情事件 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_CARD_PAY_ORDER = "card_pay_order"; |  | ||||||
|  |  | ||||||
|   //以下为客服相关事件 |  | ||||||
|   public static final String EVT_KF_CREATE_SESSION = "kf_create_session"; // 客服接入会话 |  | ||||||
|   public static final String EVT_KF_CLOSE_SESSION = "kf_close_session"; // 客服关闭会话 |  | ||||||
|   public static final String EVT_KF_SWITCH_SESSION = "kf_switch_session"; // 客服转接会话 |  | ||||||
|  |  | ||||||
|   public static final String EVT_POI_CHECK_NOTIFY = "poi_check_notify"; //门店审核事件推送 |  | ||||||
|   public static final String EVT_SUBMIT_MEMBERCARD_USER_INFO = "submit_membercard_user_info"; //接收会员信息事件推送 |  | ||||||
|  |  | ||||||
|   //以下为微信认证事件 |  | ||||||
|   /** |  | ||||||
|    * 资质认证成功 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_QUALIFICATION_VERIFY_SUCCESS = "qualification_verify_success"; |  | ||||||
|   /** |  | ||||||
|    * 资质认证失败 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_QUALIFICATION_VERIFY_FAIL = "qualification_verify_fail"; |  | ||||||
|   /** |  | ||||||
|    * 名称认证成功 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_NAMING_VERIFY_SUCCESS = "naming_verify_success"; |  | ||||||
|   /** |  | ||||||
|    * 名称认证失败 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_NAMING_VERIFY_FAIL = "naming_verify_fail"; |  | ||||||
|   /** |  | ||||||
|    * 年审通知 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_ANNUAL_RENEW = "annual_renew"; |  | ||||||
|   /** |  | ||||||
|    * 认证过期失效通知 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_VERIFY_EXPIRED = "verify_expired"; |  | ||||||
|  |  | ||||||
|   /** |  | ||||||
|    * 微信摇一摇周边>>摇一摇事件通知 |  | ||||||
|    */ |  | ||||||
|   public static final String EVT_SHAKEAROUND_USER_SHAKE = "ShakearoundUserShake"; |  | ||||||
|  |  | ||||||
|   /////////////////////// |   /////////////////////// | ||||||
|   // 上传多媒体文件的类型 |   // 上传多媒体文件的类型 | ||||||
|   /////////////////////// |   /////////////////////// | ||||||
|  | |||||||
| @ -0,0 +1,72 @@ | |||||||
|  | package me.chanjar.weixin.mp.constant; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * <pre> | ||||||
|  |  * 微信公众号事件的相关常量 | ||||||
|  |  * Created by Binary Wang on 2017-5-10. | ||||||
|  |  * @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a> | ||||||
|  |  * </pre> | ||||||
|  |  */ | ||||||
|  | public class WxMpEventConstants { | ||||||
|  |   //以下为卡券相关事件 | ||||||
|  |   public static final String EVT_CARD_PASS_CHECK = "card_pass_check"; | ||||||
|  |   public static final String EVT_CARD_NOT_PASS_CHECK = "card_not_pass_check"; | ||||||
|  |   public static final String EVT_USER_GET_CARD = "user_get_card"; | ||||||
|  |   /** | ||||||
|  |    * 卡券转赠事件 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_USER_GIFTING_CARD = "user_gifting_card"; | ||||||
|  |   public static final String EVT_USER_DEL_CARD = "user_del_card"; | ||||||
|  |   public static final String EVT_USER_CONSUME_CARD = "user_consume_card"; | ||||||
|  |   public static final String EVT_USER_PAY_FROM_PAY_CELL = "user_pay_from_pay_cell"; | ||||||
|  |   public static final String EVT_USER_VIEW_CARD = "user_view_card"; | ||||||
|  |   public static final String EVT_USER_ENTER_SESSION_FROM_CARD = "user_enter_session_from_card"; | ||||||
|  |   public static final String EVT_CARD_SKU_REMIND = "card_sku_remind"; // 库存报警 | ||||||
|  |   /** | ||||||
|  |    * 会员卡内容更新事件 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_UPDATE_MEMBER_CARD = "update_member_card"; | ||||||
|  |   /** | ||||||
|  |    * 券点流水详情事件 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_CARD_PAY_ORDER = "card_pay_order"; | ||||||
|  |  | ||||||
|  |   //以下为客服相关事件 | ||||||
|  |   public static final String EVT_KF_CREATE_SESSION = "kf_create_session"; // 客服接入会话 | ||||||
|  |   public static final String EVT_KF_CLOSE_SESSION = "kf_close_session"; // 客服关闭会话 | ||||||
|  |   public static final String EVT_KF_SWITCH_SESSION = "kf_switch_session"; // 客服转接会话 | ||||||
|  |   public static final String EVT_POI_CHECK_NOTIFY = "poi_check_notify"; //门店审核事件推送 | ||||||
|  |   public static final String EVT_SUBMIT_MEMBERCARD_USER_INFO = "submit_membercard_user_info"; //接收会员信息事件推送 | ||||||
|  |  | ||||||
|  |   //以下为微信认证事件 | ||||||
|  |   /** | ||||||
|  |    * 资质认证成功 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_QUALIFICATION_VERIFY_SUCCESS = "qualification_verify_success"; | ||||||
|  |   /** | ||||||
|  |    * 资质认证失败 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_QUALIFICATION_VERIFY_FAIL = "qualification_verify_fail"; | ||||||
|  |   /** | ||||||
|  |    * 名称认证成功 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_NAMING_VERIFY_SUCCESS = "naming_verify_success"; | ||||||
|  |   /** | ||||||
|  |    * 名称认证失败 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_NAMING_VERIFY_FAIL = "naming_verify_fail"; | ||||||
|  |   /** | ||||||
|  |    * 年审通知 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_ANNUAL_RENEW = "annual_renew"; | ||||||
|  |   /** | ||||||
|  |    * 认证过期失效通知 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_VERIFY_EXPIRED = "verify_expired"; | ||||||
|  |  | ||||||
|  |   //以下为微信摇一摇相关事件 | ||||||
|  |   /** | ||||||
|  |    * 微信摇一摇周边>>摇一摇事件通知 | ||||||
|  |    */ | ||||||
|  |   public static final String EVT_SHAKEAROUND_USER_SHAKE = "ShakearoundUserShake"; | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang