fix:时间同步改为PUT请求

This commit is contained in:
97694732@qq.com 2026-06-05 11:20:51 +08:00
parent a4afc95abf
commit b9dc96dd15

View File

@ -76,7 +76,7 @@ var _timeSyncing = false
/**
* MinIO 服务器同步时间
* 通过 GET 根路径获取 Date 响应头计算客户端与服务端的时间差
* 通过 PUT 请求根路径获取 Date 响应头计算客户端与服务端的时间差
*/
function syncServerTime() {
return new Promise(function (resolve) {
@ -89,7 +89,7 @@ function syncServerTime() {
console.log('【MinIO】同步服务器时间:', url)
uni.request({
url: url,
method: 'GET',
method: 'PUT',
success: function (res) {
var serverDateStr = null
// 尝试从多个地方取 Date 头