ec52eb7b0de840252853ef59e04e2d26d9dd449e
The collection 'plank_data' no longer needs to be created manually. db.collection().add() auto-creates the collection on first write. Changed push strategy from 'query-then-add' to 'add-first': - add() succeeds → collection created, data stored - add() fails (duplicate) → fall back to query + update - .get() on non-existent collection now caught gracefully Also switched updatedAt to db.serverDate() for consistent timestamps.
Description
微信小程序-平板支撑
Languages
JavaScript
100%