qiniu / dart-sdk

Qiniu Resource (Cloud) Storage SDK for Dart
24 stars 25 forks source link

增加上传配置自定义变量参数 #46

Closed seven-cm closed 3 years ago

seven-cm commented 3 years ago

增加类似Android在上传中可配置自定义变量参数的功能

params | Map<String, String> | 自定义变量,key 必须以 x: 开始

codecov[bot] commented 3 years ago

Codecov Report

Merging #46 (bfe3265) into master (f7cc286) will decrease coverage by 75.40%. The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #46       +/-   ##
===========================================
- Coverage   91.19%   15.78%   -75.41%     
===========================================
  Files          27       27               
  Lines         636      646       +10     
===========================================
- Hits          580      102      -478     
- Misses         56      544      +488     
Impacted Files Coverage Δ
...orage/methods/put/by_part/complete_parts_task.dart 0.00% <0.00%> (-100.00%) :arrow_down:
...orage/methods/put/by_part/put_by_part_options.dart 0.00% <ø> (-100.00%) :arrow_down:
...rc/storage/methods/put/by_part/put_parts_task.dart 0.00% <0.00%> (-98.51%) :arrow_down:
...e/methods/put/by_single/put_by_single_options.dart 0.00% <0.00%> (-100.00%) :arrow_down:
...rage/methods/put/by_single/put_by_single_task.dart 0.00% <0.00%> (-100.00%) :arrow_down:
base/lib/src/storage/methods/put/put_options.dart 0.00% <ø> (-100.00%) :arrow_down:
base/lib/src/storage/methods/put/put_response.dart 0.00% <ø> (-100.00%) :arrow_down:
base/lib/src/storage/storage.dart 8.10% <0.00%> (-85.84%) :arrow_down:
base/lib/src/storage/task/task.dart 0.00% <0.00%> (-100.00%) :arrow_down:
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f7cc286...bfe3265. Read the comment docs.

huangbinjie commented 3 years ago

你好,travis 挂了,另外请补充下测试用例

seven-cm commented 3 years ago

test中.env增加了2个变量

QINIU_DART_SDK_ACCESS_KEY="your access key"
QINIU_DART_SDK_SECRET_KEY="your secret key"
QINIU_DART_SDK_TOKEN_SCOPE="your bucket name"
QINIU_DART_SDK_CALLBACK_BODY="key=$(key)&type=$(x:type)&ext=$(x:ext)"
QINIU_DART_SDK_CALLBACK_URL="callback url"
huangbinjie commented 3 years ago

别只给文件上传加,单文件上传和分片上传接口也别忘了加~

seven-cm commented 3 years ago

别只给文件上传加,单文件上传和分片上传接口也别忘了加~

已处理~

yinxulai commented 3 years ago

作为非官方成员的第一支 PR,为了表示感谢,送你个七牛公仔吧,收件地址发送到 yinxulai@qiniu.com,我会尽快寄出,done。