Skip to content

Commit

Permalink
修复response 判空问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-code committed Sep 25, 2024
1 parent 615d36a commit df1d2d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file removed docs/images/aliyun_sale.jpg
Binary file not shown.
Binary file added docs/images/qingguo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
function (hook) {
var header = [
'<p>',
'<a href="https://www.aliyun.com/sale-season/2020/procurement-new-members?userCode=44mjc0yx">',
'<img src="/images/aliyun_sale.jpg" alt="阿里云" width="640px" height="60px">',
'<a href="https://www.qg.net/product/proxyip.html?web=feapder&keyword=%E4%BB%A3%E7%90%86ip&campaign=w-1" target="_blank">',
'<img src="/images/qingguo.jpg" alt="青果代理" width="640px" height="60px">',
'</a>',
'</p>'
].join('')
Expand All @@ -89,7 +89,7 @@
hook.afterEach(function (html) {
// var isReadme = window.location.href.indexOf("README");
var isReadme = 1 // 可以投放广告
if (isReadme === -1) {
if (isReadme === 1) {
return header + html + footer
} else {
return html + footer
Expand Down
4 changes: 2 additions & 2 deletions feapder/core/parser_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def deal_request(self, request):
)
)
used_download_midware_enable = True
if not response:
if response is None:
response = (
request_temp.get_response()
if not setting.RESPONSE_CACHED_USED
Expand Down Expand Up @@ -545,7 +545,7 @@ def deal_request(self, request):
)
request = request_temp

if not response:
if response is None:
response = (
request.get_response()
if not setting.RESPONSE_CACHED_USED
Expand Down

0 comments on commit df1d2d3

Please sign in to comment.