lc ec52eb7b0d fix: auto-create cloud collection on first push, remove manual setup
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.
2026-06-04 17:22:51 +08:00
2026-06-04 16:25:43 +08:00
S
Description
微信小程序-平板支撑
823 KiB
Languages
JavaScript 100%