Commit a1859676 authored by ibuler's avatar ibuler

fix(connect) 输入role id时,输入了role名称异常

抓取后并处理
parent e4a54ddb
...@@ -585,7 +585,7 @@ class Nav(object): ...@@ -585,7 +585,7 @@ class Nav(object):
print "请输入运行命令所关联系统用户的ID, q退出" print "请输入运行命令所关联系统用户的ID, q退出"
try: try:
role_id = raw_input("\033[1;32mRole>:\033[0m ").strip() role_id = int(raw_input("\033[1;32mRole>:\033[0m ").strip())
if role_id == 'q': if role_id == 'q':
break break
except (IndexError, ValueError): except (IndexError, ValueError):
......
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