Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
207464a0
Commit
207464a0
authored
Aug 04, 2023
by
xiao-hesheng
Browse files
修改get_api_url实现方式,支持骨科,电商,spd3.0 spd2.0服务器地址设置
parent
ae29e42a
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/common_func.py
View file @
207464a0
...
@@ -61,9 +61,18 @@ class commonFuc(object):
...
@@ -61,9 +61,18 @@ class commonFuc(object):
url
=
'http://pre-m.meitun.com'
url
=
'http://pre-m.meitun.com'
elif
env
==
'sita'
:
elif
env
==
'sita'
:
url
=
'http://sita-m.meitun.com'
url
=
'http://sita-m.meitun.com'
el
se
:
el
if
env
==
"spd3"
:
#spd3.0
# url = 'http://sit-m.meitun.com'
# url = 'http://sit-m.meitun.com'
url
=
'http://spddev.cmic.com.cn'
url
=
'http://spddev.cmic.com.cn'
elif
env
==
"spd2"
:
#spd2.0
url
=
""
elif
env
==
"orthopedics_department"
:
#骨科
url
=
""
elif
env
==
"business"
:
#电商
url
=
""
else
:
url
=
'http://spddev.cmic.com.cn'
return
url
return
url
def
get_token
(
self
,
module
,
enc_user_id
=
"enc_user_id"
):
def
get_token
(
self
,
module
,
enc_user_id
=
"enc_user_id"
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment