Skip to content

Commit

Permalink
修改导致配置的倒计时识别像素点数量无效的错别字
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyJiangWJ committed Jan 14, 2020
1 parent c5dea58 commit 44f01fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/ImgBasedFriendListScanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ const ImgBasedFriendListScanner = function () {
} else {
debugInfo(['该像素点总数[{}]未校验', point.same])
}
if (point.same > (_config.ocrThresold || 2900) && that.min_countdown >= 2) {
if (point.same >= (_config.ocrThreshold || 2900) && that.min_countdown >= 2) {
// 百度识图API获取文本
let result = BaiduOcrUtil.recoginze(base64String)
if (result && result.words_result_num > 0) {
Expand All @@ -390,6 +390,8 @@ const ImgBasedFriendListScanner = function () {
countdownLock.unlock()
}
}
} else {
debugInfo(['当前倒计时校验最小像素阈值:{} 以获取最小倒计时:{}', (_config.ocrThreshold || 2900), that.min_countdown])
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"build"
],
"packageName": "com.ant-forest-autoscript",
"versionName": "1.2.0.13.3",
"versionName": "1.2.0.13.4",
"versionCode": 1
}
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"v1.2.0.13.3","nodeId":"undefined"}
{"version":"v1.2.0.13.4","nodeId":"undefined"}

0 comments on commit 44f01fe

Please sign in to comment.