Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
b8e39fc6
Commit
b8e39fc6
authored
Feb 05, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
namespace
parent
90dc0d68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
landing_url.sh
qa_shell_script/script_by_Contorller/landing_url.sh
+11
-2
No files found.
qa_shell_script/script_by_Contorller/landing_url.sh
View file @
b8e39fc6
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
ip
=
$1
ip
=
$1
phone_no
=
$2
phone_no
=
$2
registerFrom
=
$3
registerFrom
=
$3
namespace
=
$4
date
=
`
date
"+%Y-%m-%d %H:%M:%S"
`
date
=
`
date
"+%Y-%m-%d %H:%M:%S"
`
#"请输入用户手机号:" phone_no
#"请输入用户手机号:" phone_no
...
@@ -15,13 +16,21 @@ if [ -z "$registerFrom" ];then
...
@@ -15,13 +16,21 @@ if [ -z "$registerFrom" ];then
registerFrom
=
214
registerFrom
=
214
fi
fi
cash_domain
=
"qapi-
$namespace
.q-gp.com"
xyqb_domain
=
"api-
$namespace
.q-gp.com"
if
[
-z
"
$domainName
"
]
;
then
cash_domain
=
$ip
:7037
xyqb_domain
=
$ip
:7001
fi
#ip=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
#ip=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
resp
=
`
curl
"http://
$
ip
:7037
/app/login?registerFrom=
$registerFrom
&phoneNo=
$phone_no
"
2>/dev/null
`
resp
=
`
curl
"http://
$
cash_domain
/app/login?registerFrom=
$registerFrom
&phoneNo=
$phone_no
"
2>/dev/null
`
result
=
$(
echo
$resp
|
grep
"成功"
)
result
=
$(
echo
$resp
|
grep
"成功"
)
if
[
-n
"
$result
"
]
;
then
if
[
-n
"
$result
"
]
;
then
token
=
`
echo
$resp
| jq
".data.token"
|
sed
"s/
\"
//g"
`
token
=
`
echo
$resp
| jq
".data.token"
|
sed
"s/
\"
//g"
`
#echo "token: $token"
#echo "token: $token"
echo
"
$date
http://
$ip
:7001
/app-landing?token=
$token
®isterFrom=
$registerFrom
&channelId=1"
echo
"
$date
http://
xyqb_domain
/app-landing?token=
$token
®isterFrom=
$registerFrom
&channelId=1"
else
else
echo
"获取token失败,请检查
$ip
的xyqb和cash-loan-flow"
echo
"获取token失败,请检查
$ip
的xyqb和cash-loan-flow"
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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