收藏
回答

微信安全键盘,返回******

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug 安全键盘 微信iOS客户端 System: iPhone, iOS 17.4.1, WeChat 8.0.48 WeChatLib: 3.4.0 (2024.3.26 16:38:45)

已上线版本,之前代码都是没问题可运行,现在安全键盘在输入密码后,bindblur方法返回“******”,显示编码错误,错误提示“can only be used with license”

回答关注问题邀请回答
收藏

2 个回答

  • Demons
    Demons
    03-27

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    03-27
    有用
    回复 1
    • 阿猫阿狗
      阿猫阿狗
      03-27
      你们是不是改动了什么地方啊,现在部分已经可以了,已知安卓的还有设备不行
      03-27
      回复
  • 阿猫阿狗
    阿猫阿狗
    03-27

    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”

    03-27
    有用
    回复
登录 后发表内容