1
This commit is contained in:
@@ -492,7 +492,7 @@ public class JDUtils {
|
||||
/**
|
||||
* 接收京粉指令指令
|
||||
*/
|
||||
public void sendOrderToWxByOrderJD(String order) {
|
||||
public void sendOrderToWxByOrderJD(String order,String fromWxid) {
|
||||
int[] param = {-1};
|
||||
List<OrderRow> orderRows = orderRowRepository.findByValidCodeNotInOrderByOrderTimeDesc(param);
|
||||
/**
|
||||
@@ -781,10 +781,10 @@ public class JDUtils {
|
||||
}
|
||||
|
||||
default:
|
||||
sendOrderToWxByOrderJDAdvanced(order);
|
||||
sendOrderToWxByOrderJDAdvanced(order,fromWxid);
|
||||
}
|
||||
if (content.length() > 0) {
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, WXUtil.super_admin_wxid);
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1,fromWxid);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -793,7 +793,7 @@ public class JDUtils {
|
||||
* 接收京粉指令指令
|
||||
* 高级菜单
|
||||
*/
|
||||
public void sendOrderToWxByOrderJDAdvanced(String order) {
|
||||
public void sendOrderToWxByOrderJDAdvanced(String order,String fromWxid) {
|
||||
int[] parm = {-1};
|
||||
List<OrderRow> orderRows = orderRowRepository.findByValidCodeNotInOrderByOrderTimeDesc(parm);
|
||||
|
||||
@@ -855,13 +855,13 @@ public class JDUtils {
|
||||
for (String s : split) {
|
||||
content.append("https://item.jd.com/").append(s).append(".html").append("\r\n");
|
||||
}
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, WXUtil.super_admin_wxid);
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, fromWxid);
|
||||
content = new StringBuilder();
|
||||
content.append("手机端").append("\r\n");
|
||||
for (String s : split) {
|
||||
content.append("https://item.m.jd.com/product/").append(s).append(".html").append("\r\n");
|
||||
}
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, WXUtil.super_admin_wxid);
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, fromWxid);
|
||||
content = new StringBuilder();
|
||||
|
||||
|
||||
@@ -876,13 +876,13 @@ public class JDUtils {
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
sendOrderToWxByOrderJD("菜单");
|
||||
sendOrderToWxByOrderJD("菜单",fromWxid);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
if (content.length() > 0) {
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, WXUtil.super_admin_wxid);
|
||||
wxUtil.sendTextMessage(WXUtil.super_admin_wxid, content.toString(), 1, fromWxid);
|
||||
}
|
||||
}
|
||||
//public UnionOpenGoodsBigfieldQueryResponse getUnionOpenGoodsBigfieldQueryResponse(){
|
||||
|
||||
Reference in New Issue
Block a user