fa8d8e7b4b2c3c5e6429afef5b3cba03153aecbd
Previously cloud sync only triggered on writes. If the user already had training records before cloud was enabled, they'd never be pushed — leaving the database empty until the next training session. Now onLaunch handles both cases: - Local empty → restore from cloud (recovery after deletion) - Local has data → check cloud; if cloud empty, push existing data up Also extract _restoreFromCloud to reduce nesting.
Description
微信小程序-平板支撑
Languages
JavaScript
100%