Skip to content

Commit

Permalink
修复bug,更新代码
Browse files Browse the repository at this point in the history
  • Loading branch information
pencil1 committed Sep 7, 2022
1 parent 05c8667 commit 3d96e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api_1_0/test_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def list_name():
# print(request.json)
code = data.get('list')
num = data.get('num')
d = requests.get(f'https://suggest3.sinajs.cn/suggest/type=&key={code.split(".")[0]}').text.split(',99,1')[
d = requests.get('https://suggest3.sinajs.cn/suggest/type=&key={}'.format(code.split(".")[0])).text.split(',99,1')[
0].split(',')[-1]
# return jsonify({'status': 1, 'msg': '成功', 'data': d})
if num:
Expand Down

0 comments on commit 3d96e7e

Please sign in to comment.