From fa76b73b7a1c9671a76c9821ed1a28e2f2b9e2b7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 20 二月 2024 14:19:19 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/components/resetPassword/index.jsx | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/resetPassword/index.jsx b/src/components/resetPassword/index.jsx index a72283a..71ca86a 100644 --- a/src/components/resetPassword/index.jsx +++ b/src/components/resetPassword/index.jsx @@ -60,10 +60,14 @@ func: 's_PwdUpt', LText: `select '${res.originpwd}','${res.password}'` } + + if (window.GLOB.execType === 'x') { + _param.exec_type = 'x' + } - _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') // 鏃堕棿鎴� - _param.LText = Utils.formatOptions(_param.LText) // 鍏抽敭瀛楃鏇挎崲锛宐ase64鍔犲瘑 - _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp) // md5瀵嗛挜 + _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + _param.LText = Utils.formatOptions(_param.LText, _param.exec_type) + _param.secretkey = Utils.encrypt(window.GLOB.execType === 'x' ? '' : _param.LText, _param.timestamp) Api.getSystemConfig(_param).then(result => { if (result.status) { @@ -125,10 +129,14 @@ mob: this.state.mob, check_code: this.state.code } + + if (window.GLOB.execType === 'x') { + _param.exec_type = 'x' + } - _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') // 鏃堕棿鎴� - _param.LText = Utils.formatOptions(_param.LText) // 鍏抽敭瀛楃鏇挎崲锛宐ase64鍔犲瘑 - _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp) // md5瀵嗛挜 + _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + _param.LText = Utils.formatOptions(_param.LText, _param.exec_type) + _param.secretkey = Utils.encrypt(window.GLOB.execType === 'x' ? '' : _param.LText, _param.timestamp) Api.getSystemConfig(_param).then(result => { if (result.status) { @@ -169,6 +177,7 @@ onOk={this.resetPwdSubmit} onCancel={() => { this.setState({ visible: false })}} okText={okText} + cancelText="鍙栨秷" confirmLoading={loading} destroyOnClose > -- Gitblit v1.8.0