| 12345678910111213141516171819 |
- /**
- * 版本更新模块 API
- */
- import http from '@/utils/http'
- /**
- * 检查APP版本更新
- * @param {number} platform - 平台:1=Android,2=iOS
- * @param {string} versionCode - 当前版本号(如:1.0.0)
- * @returns {Promise<{hasUpdate, versionCode, versionNumber, updateType, downloadUrl, updateContent, fileSize}>}
- */
- export function checkUpdate(platform, versionCode) {
- return http.get('/app/version/check', {
- data: { platform, versionCode },
- showLoading: false,
- showError: false,
- withToken: false
- })
- }
|