eureka
tanghc 4 years ago
parent a9a3dcdd0a
commit 4b135a62dd
  1. 8
      sop-sdk/sdk-nodejs/common/OpenClient.js
  2. 1
      sop-sdk/sdk-nodejs/main.js

@ -130,12 +130,8 @@ const OpenClient = Class.create({
'charset': 'UTF-8', 'charset': 'UTF-8',
'sign_type': 'RSA2', 'sign_type': 'RSA2',
'timestamp': moment().format('YYYY-MM-DD HH:mm:ss'), 'timestamp': moment().format('YYYY-MM-DD HH:mm:ss'),
'version': request.getVersion() 'version': request.getVersion(),
} 'biz_content': JSON.stringify(request.bizModel)
const bizModel = request.bizModel
for (const key in bizModel) {
allParams[key] = bizModel[key]
} }
if (token) { if (token) {

@ -18,6 +18,7 @@ function test() {
// 设置业务参数 // 设置业务参数
request.bizModel = { request.bizModel = {
id: 111,
name: 'jim' name: 'jim'
} }

Loading…
Cancel
Save