Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复扩展状态码异常处理问题、添加了查询短信发送记录、空间和域名操作 相关方法 #379

Merged
merged 10 commits into from
Sep 23, 2020

Conversation

yangjunren
Copy link
Contributor

1、修复http.py 文件中 ResponseInfo 对象对 扩展码错误处理问题,主要用于兼容dora侧text信息中没有error字段的问题
示例:dora侧response中的text内容为
{"similarity": 24.813754610801773, "errorcode": 0, "errormsg": "OK", "session_id": "20200401083910JsougkqMNw"}
2、sms.py 文件中添加了查询短信发送记录方法:get_messages_info
3、bucket.py 文件中添加了 批量解冻 build_batch_restoreAr 方法、获取空间列表 bucket_domain 方法 和 修改空间访问权限 change_bucket_permission 方法
4、manager.py 文件中添加了 上线域名 domain_online 方法、下线域名 domain_offline 方法 和 删除域名 delete_domain 方法

@codecov
Copy link

codecov bot commented Sep 2, 2020

Codecov Report

Merging #379 into master will decrease coverage by 0.42%.
The diff coverage is 36.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
- Coverage   66.58%   66.16%   -0.43%     
==========================================
  Files          20       20              
  Lines        1691     1720      +29     
==========================================
+ Hits         1126     1138      +12     
- Misses        565      582      +17     
Impacted Files Coverage Δ
qiniu/__init__.py 100.00% <ø> (ø)
qiniu/services/sms/sms.py 22.22% <6.66%> (+0.42%) ⬆️
qiniu/services/cdn/manager.py 28.57% <33.33%> (+0.36%) ⬆️
qiniu/services/storage/bucket.py 79.36% <36.36%> (-4.12%) ⬇️
qiniu/http.py 60.91% <72.72%> (+0.20%) ⬆️
test_qiniu.py 93.29% <100.00%> (ø)

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 7b1b110...1d61113. Read the comment docs.

Copy link
Contributor

@longbai longbai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mei-Zhao Mei-Zhao merged commit 8d1aded into master Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants