package com.matrix.component.tools;
|
|
import java.util.Arrays;
|
import java.util.List;
|
|
/**
|
* 小程序消息模板
|
*
|
* @author jiangyouyao
|
* @email 512061637@qq.com
|
* @date 2019年2月25日
|
*/
|
public class WxTempLateMsgUtil {
|
|
|
/**
|
* 模板内容first
|
*/
|
public static String TEMP_FIRST = "first";
|
/**
|
* 模板内容keyword
|
*/
|
public static String TEMP_KEYWORD = "keyword";
|
|
/**
|
* 模板内容keyword1
|
*/
|
public static String TEMP_KEYWORD1 = "keyword1";
|
|
/**
|
* 模板内容keyword2
|
*/
|
public static String TEMP_KEYWORD2 = "keyword2";
|
|
/**
|
* 模板内容keyword3
|
*/
|
public static String TEMP_KEYWORD3 = "keyword3";
|
|
/**
|
* 模板内容keyword4
|
*/
|
public static String TEMP_KEYWORD4 = "keyword4";
|
|
/**
|
* 模板内容keyword5
|
*/
|
public static String TEMP_KEYWORD5 = "keyword5";
|
|
/**
|
* 模板内容keyword6
|
*/
|
public static String TEMP_KEYWORD6 = "keyword6";
|
|
/**
|
* 模板内容keyword7
|
*/
|
public static String TEMP_KEYWORD7 = "keyword7";
|
|
/**
|
* 模板内容remark
|
*/
|
public static String TEMP_REMARK = "remark";
|
|
/**
|
* 模板文字颜色1
|
*/
|
public static String TEMP_COLOR1 = "#0044BB";
|
|
/**
|
* 模板文字颜色2
|
*/
|
public static String TEMP_COLOR2 = "#2E2E2E";
|
|
|
/**
|
* 常量errcode
|
*/
|
public static String ERRCODE = "errcode";
|
/**
|
* 40001
|
**/
|
public static final String SEND_ERROR_40001 = "40001";
|
|
|
/**
|
* 订单发货提醒
|
*/
|
public static final String ORDER_DELIVERY = "rLITY0JWVkmU0N9UQKBLf8uj62TheD6TejBJ6OkeptI";
|
|
/**
|
* 订单支付成功通知
|
*/
|
public static final String ORDER_PAY_SUCCESS = "Onmy7iGMlGaV54v4CEXt5kOCR0oumAr9-3cF-Qx57B4";
|
|
|
/**
|
* 退款成功提醒
|
*/
|
public static final String REFUND_SUCCESS = "13EFbbABfkWuqTfRmKiqadP8LMCMgxD7CFwm3JYrVms";
|
|
/**
|
* 拒绝退款提醒
|
*/
|
public static final String REFUND_FAILED = "nRe9Ha3RY3SVUahANxUZS_YJBsFoGskKoIDeqEg3uO4";
|
|
/**
|
* 填写物流提醒
|
*/
|
public static final String WRITE_LOGISTICS = "rLITY0JWVkmU0N9UQKBLf8uj62TheD6TejBJ6OkeptI";
|
|
/**
|
* 订单发货提醒
|
*
|
* @param orderOn 订单编号
|
* @param goodsName 商品名称
|
* @param address 收货地址
|
* @param companyName 物流公司
|
* @param trackingNo 物流编号
|
* @return
|
*/
|
public static int sendOrderDeliveryNotice(String orderOn, String goodsName, String address, String companyName, String trackingNo, String openId,
|
String page, String formId) {
|
return sendWxTemplateMsg(Arrays.asList(orderOn, goodsName, address, companyName, trackingNo), openId, page, ORDER_DELIVERY, formId);
|
}
|
|
;
|
|
|
/**
|
* 通用模板消息接口
|
*/
|
public static int sendWxTemplateMsg(List<String> valueList, String openId,
|
String page, String tempId, String formId) {
|
|
|
return 0;
|
}
|
|
|
/**
|
* 发送订阅消息
|
* @param temp {temp}
|
*/
|
public static void sendSubscribeMsg(WxSubscribeDto temp) {
|
|
}
|
|
|
}
|