test(wxapi): 适配新的接口模型

This commit is contained in:
fudiwei 2021-09-03 14:24:19 +08:00
parent 33afb0cfe6
commit 90a233ddfc
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{
"touser": "OPENID",
"mp_template_msg": {
"appid": "APPID ",
"template_id": "TEMPLATE_ID",
"url": "http://weixin.qq.com/download",
"miniprogram": {
"appid": "xiaochengxuappid12345",
"pagepath": "index?foo=bar"
},
"data": {
"first": {
"value": "恭喜你购买成功!",
"color": "#173177"
},
"keyword1": {
"value": "巧克力",
"color": "#173177"
},
"keyword2": {
"value": "39.8元",
"color": "#173177"
},
"keyword3": {
"value": "2014年9月22日",
"color": "#173177"
},
"remark": {
"value": "欢迎再次购买!",
"color": "#173177"
}
}
}
}

View File

@ -0,0 +1,3 @@
{
"encrypted_msg_hash": "657edd868c9715a9bebe42b833269a557a48498785397a796f1568c29a200b2c"
}

View File

@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"vaild": true,
"create_time": 1629121902
}