duolabmeng6 / pyefun

pyefun 为python提供强大且易用的中文函数库,完整的封装了易语言核心支持库所有功能,以及易语言中简单易用的函数
Apache License 2.0
168 stars 35 forks source link

网络session操作bug,session无效,cookies优化 #46

Closed 2535688890 closed 2 years ago

2535688890 commented 3 years ago

https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L208 https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L210 https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L212 https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L214 https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L216 https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L218 这里的requests应该使用self._requests

https://github.com/duolabmeng6/pyefun/blob/8144fcf302e1a2ea17e377169dd6b08a1702e587/pyefun/networkUtil.py#L189 这里的_cookie应该判断是否为空字典,空字典就舍弃传入参数

if len(_cookie) > 0:
    传入参数['cookies'] = _cookie
duolabmeng6 commented 2 years ago

from pyefun.eRequestsUtil import * # 易函数易用的请求模块

已经删除相关代码 重写了~