fix: audit fixes — treatment sync, avatar upload, code consistency

- Always sync treatment end (not just early stop), pass start/end times
- treatment-done uses api.syncTreatment instead of raw http.post
- Move getApp() from module level to onLoad in treatment-done
- Avatar upload only returns URL, no longer updates profile directly
- COS CDN domain configurable via COS_CDN_DOMAIN env var
- Fix operator precedence in request.js token expiry check
- Remove unused result variable from COS putObject
这个提交包含在:
Guoguo
2026-05-07 06:36:28 -07:00
父节点 61e1e06ec1
当前提交 c95d47e0c1
修改 5 个文件,包含 17 行新增23 行删除
+1 -1
查看文件
@@ -68,7 +68,7 @@ function httpRequest(options) {
success: function (res) {
if (res.data && res.data.code === 0) {
resolve(res.data.data)
} else if (res.data && res.data.code === 1001 || res.data && res.data.code === 1002) {
} else if (res.data && (res.data.code === 1001 || res.data.code === 1002)) {
wx.removeStorageSync('token')
wx.removeStorageSync('token_expiry')
wx.reLaunch({ url: '/pages/login/login' })