提交 4d51355e 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

use a int type `style`

上级 d0d34a9d
...@@ -1443,7 +1443,7 @@ export class PadchatRpc extends EventEmitter { ...@@ -1443,7 +1443,7 @@ export class PadchatRpc extends EventEmitter {
// user 用户名 // user 用户名
// style 是否使用风格化二维码 // style 是否使用风格化二维码
public async WXGetUserQRCode(user: string, style: number): Promise<any> { public async WXGetUserQRCode(user: string, style: number): Promise<any> {
const result = await this.rpcCall('WXGetUserQRCode', user, String(style)) const result = await this.rpcCall('WXGetUserQRCode', user, style)
log.silly('PadchatRpc', 'WXGetUserQRCode , stranger,result: %s', JSON.stringify(result)) log.silly('PadchatRpc', 'WXGetUserQRCode , stranger,result: %s', JSON.stringify(result))
if (!result || result.status !== 0) { if (!result || result.status !== 0) {
throw Error('WXGetUserQRCode , stranger,error! canot get result from websocket server') throw Error('WXGetUserQRCode , stranger,error! canot get result from websocket server')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册