# Function: sendInteractiveProperty
▸ sendInteractiveProperty(params
: sendInteractivePropertyParams): Promise‹void›
赠送互动道具
example
// 在头部引入玩家互动模块
import { interactivePropertySystem } from "@timi/mogs-sdk-open";
...
await interactivePropertySystem.sendInteractiveProperty({
name: "name_4",
toUserOpenid: toOpenid,
});
1
2
3
4
5
6
7
2
3
4
5
6
7
category
操作触发
# 参数:
属性 | 类型 |
---|---|
params | sendInteractivePropertyParams |
sendInteractivePropertyParams
属性 | 类型 | 描述 |
---|---|---|
complete? | Function | - |
fail? | function | - |
imageUrl? | string | - |
imageUrlId? | string | - |
key? | string | - |
name | string | - |
opNum? | number | - |
quiet? | boolean | - |
success? | function | - |
title? | string | - |
toUserOpenid? | string | - |
# 返回值:
Promise‹void›
返回一个promise对象