wxml内容 <input name="password" value="{{passwordModal.password}}" class='password-input' hold-keyboard='{{true}}' adjust-position='{{false}}' focus="{{passwordModal&&passwordModal.passwordFocus!=0&&passwordModal.password.length<6}}" bindinput="password_input" bindfocus="InputFocus" bindblur="InputBlur" type="safe-password" password="true" maxlength="6" safe-password-cert-path="/save_keybord.cert" safe-password-length="6" safe-password-time-stamp="{{passwordModal.time}}" safe-password-nonce="{{passwordModal.time}}" safe-password-custom-hash="md5(sha1('Revisit' + sha256(sm3(password + '{{passwordModal.salt}}'))))"></input> js内容 InputBlur(e) { if (this.data.isShow) { console.log('InputBlur', e) if (this.data.passwordModal) { if (this.data.passwordModal.password.length < 6) { this.data.passwordModal.passwordFocus = Date.parse(new Date()) this.data.passwordModal.password = "" this.setData({ passwordModal: this.data.passwordModal }) } else { if (this.task) { const data = e.detail.encryptedValue ? e.detail.encryptedValue : this._getEncryptPassword(this.data.passwordModal.password, this.data.passwordModal.salt) this.task.resolve({ password: data }) this.task = null } this.setData({ passwordModal: null }) } } } } 证书放在根目录下/save_keybord.cert,并且这个代码在之前都是可以跑的通的,即代码并没有修改,现在显示编码错误,错误提示“can only be used with license”
微信安全键盘,返回******已上线版本,之前代码都是没问题可运行,现在安全键盘在输入密码后,bindblur方法返回“******”,显示编码错误,错误提示“can only be used with license”
2024-03-27