alipay / alipay-sdk-nodejs-all

支付宝开放平台 Alipay SDK for Node.js
https://docs.open.alipay.com/54/103419/
Other
410 stars 65 forks source link

feat: 文件上传添加URI的支持 #34

Closed fegg closed 5 years ago

fegg commented 5 years ago
  1. 添加 isuri 依赖,用于判断 uri 资源
  2. 组装 FormData 的时候,如果是 uri 资源使用 request 获取 ReadStream
codecov[bot] commented 5 years ago

Codecov Report

Merging #34 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #34      +/-   ##
=========================================
+ Coverage   99.49%   99.5%   +<.01%     
=========================================
  Files           3       3              
  Lines         199     200       +1     
  Branches       48      49       +1     
=========================================
+ Hits          198     199       +1     
  Misses          1       1
Impacted Files Coverage Δ
lib/alipay.ts 99.38% <100%> (ø) :arrow_up:

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 6ce3f09...3958000. Read the comment docs.