Skip to content

Commit

Permalink
修复已知问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyJiangWJ committed Jul 9, 2023
1 parent e7c0707 commit 182456e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: TonyJiangWJ
* @Date: 2019-12-09 20:42:08
* @Last Modified by: TonyJiangWJ
* @Last Modified time: 2023-07-08 22:38:45
* @Last Modified time: 2023-07-09 11:09:04
* @Description:
*/
require('./lib/Runtimes.js')(global)
Expand Down Expand Up @@ -277,7 +277,7 @@ let default_config = {
random_gesture_safe_range_top: '',
random_gesture_safe_range_bottom: '',
// 代码版本
code_version: 'v1.3.8.2',
code_version: 'v1.3.8.3',
}
// 文件更新后直接生效,不使用缓存的值
let no_cache_configs = ['release_access_token', 'code_version']
Expand Down
6 changes: 3 additions & 3 deletions core/Ant_forest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: NickHopps
* @Date: 2019-01-31 22:58:00
* @Last Modified by: TonyJiangWJ
* @Last Modified time: 2023-07-08 17:48:57
* @Last Modified time: 2023-07-09 11:08:42
* @Description:
*/
let { config: _config, storage_name: _storage_name } = require('../config.js')(runtime, global)
Expand Down Expand Up @@ -559,7 +559,7 @@ function Ant_forest () {
let showVisual = true
if (_config.auto_detect_tree_collect_region) {
WarningFloaty.addText('准备查找 证书 控件', { x: config.device_width / 2, y: config.device_height / 2 })
let licenseWidget = WidgetUtil.widgetGetOne(/^\s*证书\s*$/, 1000)
let licenseWidget = _widgetUtils.widgetGetOne(/^\s*证书\s*$/, 1000)
if (licenseWidget) {
WarningFloaty.addRectangle('找到了证书控件', boundsToRegion(licenseWidget.bounds()))
let anchorLeft = licenseWidget.bounds().left
Expand All @@ -577,7 +577,7 @@ function Ant_forest () {
_config.overwrite('tree_collect_height', tree_collect_height)
_config.overwrite('auto_detect_tree_collect_region', false)
} else {
WarningFloaty.addText('未找到证书控件', { x: config.device_width / 2, y: config.device_height / 2 + 100 })
WarningFloaty.addText('未找到证书控件', { x: _config.device_width / 2, y: _config.device_height / 2 + 100 })
warnInfo('自动识别能量球识别区域失败,未识别到对象:证书')
warnInfo('请运行 可视化配置.js并手动修改能量球所在区域的配置', true)
WarningFloaty.addRectangle('当前能量球所在区域可能不正确,请手动配置', [_config.tree_collect_left, _config.tree_collect_top, _config.tree_collect_width, _config.tree_collect_height], '#ff0000')
Expand Down

0 comments on commit 182456e

Please sign in to comment.