v1.50a example

This commit is contained in:
Freddie
2022-04-16 15:46:31 +08:00
parent a9515e3b9e
commit d83ffade9d
4 changed files with 22 additions and 4 deletions

View File

@@ -53,3 +53,7 @@ export const example: EPR = async (info, data, send) => {
export const changeName = async (data: any) => {
await DB.Update(data.refid, { collection: 'profile' }, { $set: { name: data.name } });
};
export const randomNumber = async (data: any, send: WebUISend) => {
send.json({ number: Math.floor(Math.random() * 100) });
};