孟令鑫 1 year ago
parent
commit
0ec806d95c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      aarch64/pjisuv/common/config/c_oss.go

+ 2 - 0
aarch64/pjisuv/common/config/c_oss.go

@@ -38,6 +38,8 @@ func InitOssConfig() {
 		c_log.GlobalLogger.Error("无法创建阿里云client:", err)
 		os.Exit(-1)
 	}
+	// 超时时间设置
+	OssClient.Config.Timeout = 3600
 	OssBucket, err = OssClient.Bucket(ossConnectInfo.BucketName)
 	if err != nil {
 		c_log.GlobalLogger.Error("无法创建阿里云bucket:", err)