From b987be8dd8b6bc1fa01810daa1e1a60e58a3c921 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 04 九月 2020 17:24:36 +0800 Subject: [PATCH] 2020-09-04 --- src/templates/zshare/verifycard/index.jsx | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/templates/zshare/verifycard/index.jsx b/src/templates/zshare/verifycard/index.jsx index 8ecfd5a..cd682da 100644 --- a/src/templates/zshare/verifycard/index.jsx +++ b/src/templates/zshare/verifycard/index.jsx @@ -997,8 +997,7 @@ orderParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' orderParam.secretkey = Utils.encrypt(orderParam.LText, orderParam.timestamp) - - orderParam.open_key = Utils.encrypt(orderParam.secretkey, orderParam.timestamp, true) // 浜戠鏁版嵁楠岃瘉 + orderParam.open_key = Utils.encryptOpenKey(orderParam.secretkey, orderParam.timestamp) // 浜戠鏁版嵁楠岃瘉 Api.getSystemConfig(orderParam).then(res => { if (res.status) { @@ -1027,8 +1026,7 @@ orderDetailParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' orderDetailParam.secretkey = Utils.encrypt(orderDetailParam.LText, orderDetailParam.timestamp) - - orderDetailParam.open_key = Utils.encrypt(orderDetailParam.secretkey, orderDetailParam.timestamp, true) // 浜戠鏁版嵁楠岃瘉 + orderDetailParam.open_key = Utils.encryptOpenKey(orderDetailParam.secretkey, orderDetailParam.timestamp) // 浜戠鏁版嵁楠岃瘉 Api.getSystemConfig(orderDetailParam).then(res => { if (res.status) { @@ -1064,8 +1062,7 @@ voucherParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' voucherParam.secretkey = Utils.encrypt(voucherParam.LText, voucherParam.timestamp) - - voucherParam.open_key = Utils.encrypt(voucherParam.secretkey, voucherParam.timestamp, true) // 浜戠鏁版嵁楠岃瘉 + voucherParam.open_key = Utils.encryptOpenKey(voucherParam.secretkey, voucherParam.timestamp) // 浜戠鏁版嵁楠岃瘉 Api.getSystemConfig(voucherParam).then(res => { if (res.status) { @@ -1094,8 +1091,7 @@ voucherDetailParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' voucherDetailParam.secretkey = Utils.encrypt(voucherDetailParam.LText, voucherDetailParam.timestamp) - - voucherDetailParam.open_key = Utils.encrypt(voucherDetailParam.secretkey, voucherDetailParam.timestamp, true) // 浜戠鏁版嵁楠岃瘉 + voucherDetailParam.open_key = Utils.encryptOpenKey(voucherDetailParam.secretkey, voucherDetailParam.timestamp) // 浜戠鏁版嵁楠岃瘉 Api.getSystemConfig(voucherDetailParam).then(res => { if (res.status) { @@ -1134,8 +1130,7 @@ _sParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' _sParam.secretkey = Utils.encrypt(_sParam.LText, _sParam.timestamp) - - _sParam.open_key = Utils.encrypt(_sParam.secretkey, _sParam.timestamp, true) // 浜戠鏁版嵁楠岃瘉 + _sParam.open_key = Utils.encryptOpenKey(_sParam.secretkey, _sParam.timestamp) // 浜戠鏁版嵁楠岃瘉 Api.getSystemConfig(_sParam).then(res => { if (res.status) { @@ -1151,7 +1146,7 @@ res.data.forEach(item => { let _item = { name: item.funcname, - value: Utils.formatOptions(item.longparam, true) + value: Utils.UnformatOptions(item.longparam) } _scripts.push(_item) -- Gitblit v1.8.0