OfficeSystem/api/update.js
2025-11-19 13:42:44 +08:00

20 lines
536 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 版本更新相关 API
*/
/**
* 检查应用版本
* @param {Object} params - 版本检查参数
* @param {string} params.versionName - 当前版本名称(如 1.0.1
* @param {string} params.platform - 平台类型android/ios
* @returns {Promise} 返回版本信息
*/
export const checkAppVersion = (params) => {
return uni.$uv.http.post('/bst/app/getLatestVersion', params, {
custom: {
auth: false, // 版本检查可能不需要登录
toast: false // 不自动提示错误
}
});
};