安全编码问题修复 #6
Open
hu-zhiqiang1Add on Jul 24
Total: 2 files changed+4-4
@@ -46,7 +46,7 @@ struct BackgroundColorChange {
46 private inputController: inputMethod.InputMethodController = inputMethod.getController();46 private inputController: inputMethod.InputMethodController = inputMethod.getController();
47 private arrArea: number[] = [0.0, 1, 0];47 private arrArea: number[] = [0.0, 1, 0];
48 private verifyCodeLength: number = 6;48 private verifyCodeLength: number = 6;
49- private codeIndexArray: Array<number> = Array.from([0, 1, 2, 3, 4, 5]);49+ private codeIndexArray: number[] = Array.from([0, 1, 2, 3, 4, 5]);
50 private textConfig: inputMethod.TextConfig = {50 private textConfig: inputMethod.TextConfig = {
51 inputAttribute: {51 inputAttribute: {
52 textInputType: inputMethod.TextInputType.NUMBER,52 textInputType: inputMethod.TextInputType.NUMBER,
@@ -142,7 +142,7 @@ struct BackgroundColorChange {
142 $r('app.color.theme_color_m'))142 $r('app.color.theme_color_m'))
143 }, (item: number) => JSON.stringify(item))143 }, (item: number) => JSON.stringify(item))
144 }144 }
145- .onVisibleAreaChange(this.arrArea, async (isVisible: boolean, currentRatio: number) => {145+ .onVisibleAreaChange(this.arrArea, (isVisible: boolean, currentRatio: number) => {
146 if (isVisible && currentRatio >= 1.0) {146 if (isVisible && currentRatio >= 1.0) {
147 this.attach();147 this.attach();
148 }148 }
@@ -48,7 +48,7 @@ struct TextBoxShowCursor {
48 private arrArea: number[] = [0.0, 1, 0];48 private arrArea: number[] = [0.0, 1, 0];
49 private inputController: inputMethod.InputMethodController = inputMethod.getController();49 private inputController: inputMethod.InputMethodController = inputMethod.getController();
50 private verifyCodeLength: number = 6;50 private verifyCodeLength: number = 6;
51- private codeIndexArray: Array<number> = Array.from([0, 1, 2, 3, 4, 5]);51+ private codeIndexArray: number[] = Array.from([0, 1, 2, 3, 4, 5]);
52 private textConfig: inputMethod.TextConfig = {52 private textConfig: inputMethod.TextConfig = {
53 inputAttribute: {53 inputAttribute: {
54 textInputType: inputMethod.TextInputType.NUMBER,54 textInputType: inputMethod.TextInputType.NUMBER,
@@ -189,7 +189,7 @@ struct TextBoxShowCursor {
189 }, (item: number) => item.toString())189 }, (item: number) => item.toString())
190 }190 }
191 // When the visible area changes, binding registration and unbinding are performed.191 // When the visible area changes, binding registration and unbinding are performed.
192- .onVisibleAreaChange(this.arrArea, async (isVisible: boolean, currentRatio: number) => {192+ .onVisibleAreaChange(this.arrArea, (isVisible: boolean, currentRatio: number) => {
193 if (isVisible && currentRatio >= 1) {193 if (isVisible && currentRatio >= 1) {
194 this.opacityColumn = 1;194 this.opacityColumn = 1;
195 this.attach();195 this.attach();