Commit 958b24fc by zeven

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

parent 454d4ee2
{ {
"name": "zm-face-counter", "name": "zm-face-counter",
"version": "1.3.18", "version": "1.3.19",
"private": true, "private": true,
"scripts": { "scripts": {
"android": "react-native run-android", "android": "react-native run-android",
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
"test": "jest", "test": "jest",
"lint": "eslint --ext .js index.js src", "lint": "eslint --ext .js index.js src",
"apk": "cd android && ./gradlew app:assembleRelease && cp ./app/build/outputs/apk/release/app-release.apk ../fcounter.apk", "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-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.18'", "android-product": "code-push promote ZmFaceCounter-android Staging Production --des '1.3.19'",
"android-history": "code-push deployment history ZmFaceCounter-android Production", "android-history": "code-push deployment history ZmFaceCounter-android Production",
"android-rollback": "code-push rollback ZmFaceCounter-android Production" "android-rollback": "code-push rollback ZmFaceCounter-android Production"
}, },
......
...@@ -83,13 +83,13 @@ class FacePage extends Component { ...@@ -83,13 +83,13 @@ class FacePage extends Component {
} }
const setting = await AutoClick.isSettingsOn(); const setting = await AutoClick.isSettingsOn();
if (!setting) this.setState({setting: true}); // 展示按钮 if (!setting) this.setState({setting: true}); // 展示按钮
AutoClick.on('wxpayfaceRegister', async () => { // AutoClick.on('wxpayfaceRegister', async () => {
await AutoClick.clickBackKey(); // await AutoClick.clickBackKey();
if (this.faceBusy) return; // if (this.faceBusy) return;
this.faceBusy = true; // this.faceBusy = true;
await this.face(); // 点击开通重新调用 // await this.face(); // 点击开通重新调用
this.faceBusy = false; // this.faceBusy = false;
}); // });
// 监听微信输入手机号事件 // 监听微信输入手机号事件
AutoClick.on('AccessibilityClick', ({text}) => { AutoClick.on('AccessibilityClick', ({text}) => {
if (!text) return; if (!text) return;
......
...@@ -79,13 +79,13 @@ class VerticalPage extends Component { ...@@ -79,13 +79,13 @@ class VerticalPage extends Component {
} }
} }
this.initSetting(); this.initSetting();
AutoClick.on('wxpayfaceRegister', async () => { // AutoClick.on('wxpayfaceRegister', async () => {
await AutoClick.clickBackKey(); // await AutoClick.clickBackKey();
if (this.faceBusy) return; // if (this.faceBusy) return;
this.faceBusy = true; // this.faceBusy = true;
await this.wxFacepay(); // 点击开通重新调用 // await this.wxFacepay(); // 点击开通重新调用
this.faceBusy = false; // this.faceBusy = false;
}); // });
await this.refreshLogo(); 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