Commit 11d5db61 authored by shiyu's avatar shiyu

公众号消息测试1

parent 82212145
......@@ -4,6 +4,7 @@ import com.xxdxxs.entity.Entity;
import lombok.Data;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
@Data
......@@ -32,7 +33,7 @@ public class ConsignSaleSubscribeMsg implements Entity, AbstractSubscribeMsg{
@Override
public Map<String, Object> getTempletParam() {
Map<String, Object> map = new HashMap<>();
Map<String, Object> map = new LinkedHashMap<>();
map.put("character_string1.DATA", new HashMap(){{put("value", saleId);}});
map.put("thing2.DATA", new HashMap(){{put("value", itemName);}});
map.put("time4.DATA", new HashMap(){{put("value", time);}});
......
......@@ -192,7 +192,7 @@ public class OfficialAccountCallbackController {
ConsignSaleSubscribeMsg consignSaleSubscribeMsg = new ConsignSaleSubscribeMsg();
consignSaleSubscribeMsg.setSaleId(saleId);
consignSaleSubscribeMsg.setItemName(itemName);
consignSaleSubscribeMsg.setTime(DateUtils.toString(new Date()));
consignSaleSubscribeMsg.setTime("2023年12月19日 14:18:00");
officialAccountApi.sendModelMsg(openId, consignSaleSubscribeMsg);
return Result.success();
} catch (Exception e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment