mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.2.7
This commit is contained in:
@@ -103,15 +103,13 @@ class OpenClient:
|
||||
'charset': 'UTF-8',
|
||||
'sign_type': 'RSA2',
|
||||
'timestamp': time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
|
||||
'version': request.get_version()
|
||||
'version': request.get_version(),
|
||||
'biz_content': json.dumps(params)
|
||||
}
|
||||
|
||||
if token is not None:
|
||||
all_params['access_token'] = token
|
||||
|
||||
# 添加业务参数
|
||||
all_params.update(params)
|
||||
|
||||
# 构建sign
|
||||
sign = SignUtil.create_sign(all_params, self.__private_key, 'RSA2')
|
||||
all_params['sign'] = sign
|
||||
|
Reference in New Issue
Block a user