提交 92343309 编写于 作者: S SuperChang 提交者: Huan (李卓桓)

Change Mini Program payload in wechaty (#1883)

* 0.29.3

* modify: recorrect the mini-program payload type according to puppet mini-program.

* modify: bump wechaty-puppet version to 0.17.3

* modify: for eslint
上级 7bbce63b
......@@ -97,7 +97,7 @@
"read-pkg-up": "^6.0.0",
"state-switch": "^0.6.2",
"watchdog": "^0.8.1",
"wechaty-puppet": "^0.17.2",
"wechaty-puppet": "^0.17.3",
"ws": "^7.0.0"
},
"devDependencies": {
......
......@@ -20,8 +20,9 @@ export class MiniProgram {
const payload: MiniProgramPayload = {
appid : 'todo',
description : 'todo',
pagepath : 'todo',
thumbnailurl : 'todo',
pagePath : 'todo',
thumbKey : 'todo',
thumbUrl : 'todo',
title : 'todo',
username : 'todo',
}
......@@ -46,8 +47,8 @@ export class MiniProgram {
return this.payload.title
}
public pagepath (): undefined | string {
return this.payload.pagepath
public pagePath (): undefined | string {
return this.payload.pagePath
}
public username (): undefined | string {
......@@ -58,8 +59,12 @@ export class MiniProgram {
return this.payload.description
}
public thumbnailurl (): undefined | string {
return this.payload.thumbnailurl
public thumbUrl (): undefined | string {
return this.payload.thumbUrl
}
public thumbKey (): undefined | string {
return this.payload.thumbKey
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册