Commit 958b24fc by zeven

微信刷脸SDK已修复,首次开通刷脸无需重新刷脸

parent 454d4ee2
{
"name": "zm-face-counter",
"version": "1.3.18",
"version": "1.3.19",
"private": true,
"scripts": {
"android": "react-native run-android",
......@@ -8,8 +8,8 @@
"test": "jest",
"lint": "eslint --ext .js index.js src",
"apk": "cd android && ./gradlew app:assembleRelease && cp ./app/build/outputs/apk/release/app-release.apk ../fcounter.apk",
"android-staging": "code-push release-react ZmFaceCounter-android android -t '1.0.0' --des '1.3.18'",
"android-product": "code-push promote ZmFaceCounter-android Staging Production --des '1.3.18'",
"android-staging": "code-push release-react ZmFaceCounter-android android -t '1.0.0' --des '1.3.19'",
"android-product": "code-push promote ZmFaceCounter-android Staging Production --des '1.3.19'",
"android-history": "code-push deployment history ZmFaceCounter-android Production",
"android-rollback": "code-push rollback ZmFaceCounter-android Production"
},
......
......@@ -83,13 +83,13 @@ class FacePage extends Component {
}
const setting = await AutoClick.isSettingsOn();
if (!setting) this.setState({setting: true}); // 展示按钮
AutoClick.on('wxpayfaceRegister', async () => {
await AutoClick.clickBackKey();
if (this.faceBusy) return;
this.faceBusy = true;
await this.face(); // 点击开通重新调用
this.faceBusy = false;
});
// AutoClick.on('wxpayfaceRegister', async () => {
// await AutoClick.clickBackKey();
// if (this.faceBusy) return;
// this.faceBusy = true;
// await this.face(); // 点击开通重新调用
// this.faceBusy = false;
// });
// 监听微信输入手机号事件
AutoClick.on('AccessibilityClick', ({text}) => {
if (!text) return;
......
......@@ -79,13 +79,13 @@ class VerticalPage extends Component {
}
}
this.initSetting();
AutoClick.on('wxpayfaceRegister', async () => {
await AutoClick.clickBackKey();
if (this.faceBusy) return;
this.faceBusy = true;
await this.wxFacepay(); // 点击开通重新调用
this.faceBusy = false;
});
// AutoClick.on('wxpayfaceRegister', async () => {
// await AutoClick.clickBackKey();
// if (this.faceBusy) return;
// this.faceBusy = true;
// await this.wxFacepay(); // 点击开通重新调用
// this.faceBusy = false;
// });
await this.refreshLogo();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment