1
This commit is contained in:
@@ -354,6 +354,7 @@ public class JDUtils {
|
||||
content.append(":::高级菜单:::\r");
|
||||
content.append("菜单:京+高级+命令 \n 如: 京高级违规30\r");
|
||||
content.append("京高级违规+整数\r");
|
||||
content.append("京高级+订单号\r\"");
|
||||
content.append("京高级SKU+sku\\r\"");
|
||||
break;
|
||||
case "今日统计": {
|
||||
|
||||
@@ -60,19 +60,20 @@ public class OrderUtil {
|
||||
ValidCodeConverter converter = new ValidCodeConverter();
|
||||
String orderInfo =
|
||||
//+ "订单+sku:" + orderRow.getId() + "\r"
|
||||
"订单号:" + orderRow.getOrderId() + "(" + (orderRow.getPlus() == 1 ? "plus" : "非plus") + ")\r" +
|
||||
"订单号:" + orderRow.getOrderId() + " (" + (orderRow.getPlus() == 1 ? "plus" : "非plus") + ")\r" +
|
||||
|
||||
"最新订单状态:" + (converter.getCodeDescription(orderRow.getValidCode())) + "\r" +
|
||||
"最新订单状态:" + (converter.getCodeDescription(orderRow.getValidCode())) + "\r"
|
||||
|
||||
"商品名称:" + orderRow.getSkuName() + "\r"
|
||||
+ "商品单价:" + orderRow.getPrice() + "\r"
|
||||
+ "商品数量:" + orderRow.getSkuNum() + "\r"
|
||||
+ "商品总价:" + (orderRow.getPrice() * orderRow.getSkuNum()) + "\r"
|
||||
+ "预估计佣金额:" + orderRow.getEstimateCosPrice() + "\n"
|
||||
+"商品名称:" + orderRow.getSkuName() + "\r"
|
||||
//+ "商品单价:" + orderRow.getPrice() + "\r"
|
||||
//+ "商品数量:" + orderRow.getSkuNum() + "\r"
|
||||
//+ "商品总价:" + (orderRow.getPrice() * orderRow.getSkuNum()) + "\r"
|
||||
//+ "预估计佣金额:" + orderRow.getEstimateCosPrice() + "\n"
|
||||
|
||||
+ "佣金比例:" + orderRow.getCommissionRate() + "%\r\r"
|
||||
+ "推客的预估佣金:" + orderRow.getEstimateFee() + "\r"
|
||||
+ "实际计算佣金的金额:" + orderRow.getActualCosPrice() + "\r"
|
||||
+ "佣金比例:" + orderRow.getCommissionRate() + "%\r"
|
||||
+ "推客的预估佣金:" + orderRow.getEstimateFee() + "\r\n"
|
||||
|
||||
+ "下单时间:" + formatter.format(orderRow.getOrderTime()) + "\r"
|
||||
+ "完成时间:" + (orderRow.getFinishTime() != null ? formatter.format(orderRow.getFinishTime()) : "未完成") + "\r\n";
|
||||
if (oldValidCode != -100) {
|
||||
|
||||
@@ -102,13 +102,13 @@ public class WXUtil {
|
||||
//logger.info("发送文本消息 msgType: {} wxid: {} fromwxid: {} content: {}", msgType, wxid, fromwxid, content);
|
||||
// 先在content顶部插入时间戳
|
||||
// 因为引入了消息队列,所以在每条消息都加上时间戳 格式化成 yyyy-MM-dd HH:mm:ss
|
||||
content = "[" + DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss") + "] \r" + content;
|
||||
content = "[ " + DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss") + " ] \r" + content;
|
||||
|
||||
// 如果是自己的微信,所有信息都加上少爷
|
||||
if (wxid.equals(super_admin_wxid) || fromwxid.equals(super_admin_wxid)) {
|
||||
content = "超管: 凡神 !\r\n" + content;
|
||||
}
|
||||
List<String> strings = splitStringByLength(content, 3072);
|
||||
//if (wxid.equals(super_admin_wxid) || fromwxid.equals(super_admin_wxid)) {
|
||||
// content = "超管: 凡神 !\r\n" + content;
|
||||
//}
|
||||
List<String> strings = splitStringByLength(content, 2048);
|
||||
int count = 1;
|
||||
for (String string : strings) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user