pindo 4.7.9 → 4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pindo/client/pgyeruploadclient.rb +11 -3
- data/lib/pindo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a76bb1d95b970919b4b386f52841ddc4cb21ac22a7b5d433c7fcc88b6030da
|
4
|
+
data.tar.gz: e0f0eb7ec08a2fca3489b0d469fe23eaa0f34ea9d88bcb209b50df822f42e406
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d95421e56c75ed51b5d75b7e84aa2e7dba6c566379d6cc23e3966aa616dc15f0c433552b5963c04ae36f488891dc80b1f2ac8b79f0069d166daaaf59c942bd0
|
7
|
+
data.tar.gz: a3c6c60f5398b336f17a79bff657a4eb0b28882328828fc05507bbe38a03e4785f455492dffd0800df788d686351ecc3376a88e8e69bd3e2268337417571f2f6
|
@@ -100,8 +100,6 @@ module Pindo
|
|
100
100
|
puts "文件大小: #{total_m}M"
|
101
101
|
puts "上传路径: #{upload_path_key}"
|
102
102
|
puts "切片大小: 5 MB"
|
103
|
-
puts "最大线程数: #{task_num}"
|
104
|
-
puts
|
105
103
|
|
106
104
|
upload_result = nil
|
107
105
|
|
@@ -110,7 +108,17 @@ module Pindo
|
|
110
108
|
|
111
109
|
upload_id= result_data["data"]["uploadId"]
|
112
110
|
@upload_params_list = result_data["data"]["uploadParamsList"]
|
111
|
+
task_num = @upload_params_list.length
|
112
|
+
if task_num < 2
|
113
|
+
task_num = 2
|
114
|
+
end
|
113
115
|
|
116
|
+
if task_num > 100
|
117
|
+
task_num = 100
|
118
|
+
end
|
119
|
+
|
120
|
+
puts "最大线程数: #{task_num}"
|
121
|
+
puts
|
114
122
|
|
115
123
|
Funlog.instance.fancyinfo_start("开始上传...")
|
116
124
|
@upload_eTags = []
|
@@ -121,7 +129,7 @@ module Pindo
|
|
121
129
|
multi_task_upload_data_req(task_num:task_num)
|
122
130
|
|
123
131
|
result_data = post_upload_finish_req(upload_path_key:upload_path_key, upload_id:upload_id, eTags:@upload_eTags)
|
124
|
-
|
132
|
+
|
125
133
|
if result_data["code"] == 200
|
126
134
|
upload_result = upload_path_key
|
127
135
|
Funlog.instance.fancyinfo_success("文件#{@upload_binary_file} 上传成功! 😎😎😎")
|
data/lib/pindo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pindo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|