123456789101112131415161718192021222324252627282930313233343536373839 |
- const cloud = require('wx-server-sdk')
- cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV })
- const db = cloud.database()
- const mpdb1 = db.collection('mpdb1')
- const _ = db.command
- exports.main = async (event, context) => {
- const wxContext = cloud.getWXContext()
-
-
-
-
-
-
-
-
-
-
-
- return await mpdb1.where({
- _id: _.in(["b751f28065b20b2708757dd94908a1d0","1601815765b20cc7000084e144cd60bf"])
- }).update({
- data:{
- msg: "hello word"
- }
- })
-
-
-
- }
|