| | |
| | | _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp) |
| | | |
| | | return Api.getLocalConfig(_param) |
| | | return Api.genericInterface(_param) |
| | | }).then(res => { |
| | | if (!res) return res |
| | | |
| | |
| | | _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp) |
| | | _param.open_key = Utils.encryptOpenKey(_param.secretkey, _param.timestamp) |
| | | |
| | | return Api.getLocalConfig(_param) |
| | | return Api.genericInterface(_param) |
| | | }).then(res => { |
| | | if (!res || res === 'create') return res |
| | | |
| | |
| | | _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp) |
| | | _param.open_key = Utils.encryptOpenKey(_param.secretkey, _param.timestamp) |
| | | |
| | | return Api.getLocalConfig(_param) |
| | | return Api.genericInterface(_param) |
| | | }).then(res => { |
| | | this.setState({ |
| | | loading: false |