Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bankroft committed Oct 3, 2018
1 parent d5dcbd9 commit 3f6ebc0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ port=27088

[queryHTTP]
;配置HTTP查询
url_query=http://erya.bankroft.cn/query
url_update=http://erya.bankroft.cn/update
url_query=http://erya.bankroft.cn/api/query
url_update=http://erya.bankroft.cn/api/update

[queryMethod]
;1表示直接连接数据库读取,2表示通过http获取
Expand Down
4 changes: 2 additions & 2 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ port=27088

[queryHTTP]
;配置HTTP查询
url_query=http://erya.bankroft.cn/api/query
url_update=http://erya.bankroft.cn/api/update
url_query=http://erya.bankroft.top/api/query
url_update=http://erya.bankroft.top/api/update

[queryMethod]
;1表示直接连接数据库读取,2表示通过http获取
Expand Down
10 changes: 5 additions & 5 deletions console_erya/automaticcompletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ def __watch(self):
break
self.switch_to_video_frame()
if self.play_status()[0]:
print(1)
# print(1)
last_opt = None
else:
try:
print(12)
# print(12)
# 视频因格式不支持或者服务器或网络的问题无法加载。
text = self.driver.find_element_by_xpath('//*[@aria-label="弹窗"]/div[2]/div').text.strip()
# 是否正确切换线路
Expand All @@ -190,17 +190,17 @@ def __watch(self):
pass
except IndexError:
pass
print(123)
# print(123)
try:
text = self.driver.find_element_by_xpath('//div[@class="ans-videoquiz-title"]').text.strip()
print(33)
# print(33)
last_opt = 'a'
if text[1:4] == '判断题':
self.answer_video(text[1:4])
continue
except common.exceptions.NoSuchElementException:
pass
print(2)
# print(2)
if last_opt == 's':
return False
logger.info(log_template, '点击视频', '启动', '成功')
Expand Down
2 changes: 1 addition & 1 deletion rest_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
api = Api(app)

__author__ = 'bankroft'
__version__ = '0.60 debug'
__version__ = '0.65dev'
__blog__ = 'https://www.bankroft.cn'
__web__ = 'https://www.bankroft.cn/erya-console'

Expand Down

0 comments on commit 3f6ebc0

Please sign in to comment.