Skip to content

模块Core下的request方法参数headers={},并发情况下会导致数据错乱,验签失败。 #58

Open
@zljk0306

Description

如果WeChatPay使用单例模式,并发请求时,前一个请求未发出前,headers可能会被后面的请求修改,从而导致前面的请求验签失败。
建议修改为:headers=None ,并在方法体内初始化:if headers is None: headers=dict()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions