1.公众号订阅新增type类型

This commit is contained in:
2024-08-02 10:59:53 +08:00
parent ad5cd56596
commit 567a5a0e23
7 changed files with 33 additions and 18 deletions

View File

@@ -47,13 +47,13 @@ public class WxAccountUtil {
// sendStockWarnMsg("13213", "31123", "234", "ojC-S6n2DDlpj52iVMoiLL0Ry4HI");
}
public static String getRadarQrCode(Integer shopId) {
public static String getRadarQrCode(Integer shopId, Integer type) {
HashMap<String, Object> req = new HashMap<>();
req.put("expire_seconds", 300);
req.put("action_name", "QR_STR_SCENE");
HashMap<Object, Object> actionInfo = new HashMap<>();
HashMap<String, Object> scene = new HashMap<>();
scene.put("scene_str", "msg" + shopId);
scene.put("scene_str", "msg" + shopId + ":" + type);
actionInfo.put("scene", scene);
req.put("action_info", actionInfo);
log.info("开始获取公众号二维码, 请求数据: {}", req);