let dbDel = uniCloud.databaseForJQL();
await db.collection($consts.Cln.USER).doc(uid).update({
lock_money: dbDel.command.inc(-order.balance_fee),
balance: dbDel.command.inc(order.balance_fee),
update_time: new Date().getTime(),
});
并且:定时器中用不了:this.getClientInfo() ,要怎么获取定时器执行时的角色,并自定义控制权限?
如:let db = uniCloud.databaseForJQL({
clientInfo: {自定义权限标记}
});
1 个回复
x***@163.com (作者)
上面是在_timing中执行的