lc 90e0e64156 fix: correct cloud upsert — query then update/add per user
Before: add-first-then-update caused duplicate docs on each push
because add() always succeeds once collection exists.

Now: query {_openid} first → update if found, add if not.
Each user always has exactly one document in plank_data.

Also removed debug console.log — only production-scale errors remain.
2026-06-04 17:41:29 +08:00
2026-06-04 16:25:43 +08:00
S
Description
微信小程序-平板支撑
823 KiB
Languages
JavaScript 100%