qingqiaoim
v1.4.0
Published
```
Downloads
245
Readme
使用
import useUpload from 'qingqiaoim';
const resultData = await onUpload();
// 普通单/群聊消息 messageType 可不传 默认为单聊,传1为群聊
let data1 = await goEasy.sendMsg(
{ messags: "我是消息", messageType: 0 },
"1864646652975910915"
);
// 普通消息,带拓展,注意第三个有null
let data2 = await goEasy.sendMsg(
{ messags: "我是消息", messageType: 1 },
"1864646652975910915",
null,
{ nickname: "秦星星" }
);
// 自定义消息,第三个{templateName 模板名称,不传就是qingqiaoProcurement,status:0新增,1已采购,2修改,3标记无货 }
let data3 = await goEasy.sendMsg(
{
messags: { productName: "黄瓜", oldQuantity: 10, quantity: "20", unit: "件" },
messageType: 2,
},
"1864646652975910915",
{ templateName: "qingqiaoProcurement1", status: 0 },
{ nickname: "秦星星" }
);