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
9958de83
Commit
9958de83
authored
Feb 01, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.quantgroup.cn/QA/qa-deploy-utils
parents
a7311e68
90dc0d68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spidercenter_authorization_new.sh
...pt/script_by_Contorller/spidercenter_authorization_new.sh
+6
-0
No files found.
qa_shell_script/script_by_Contorller/spidercenter_authorization_new.sh
View file @
9958de83
...
@@ -20,6 +20,12 @@ function authorization()
...
@@ -20,6 +20,12 @@ function authorization()
#查询userID
#查询userID
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
if
[
-z
$user_id
]
;
then
uuid
=
$(
uuidgen
)
insert_sql
=
"insert into
${
TABLENAME1
}
("
phone_no
","
registered_from
","
uuid
","
enable
") values ('
${
phone_no
}
','111','
$uuid
','1')"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
fi
uuid
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"select uuid from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
`
uuid
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"select uuid from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
`
echo
"user_id=
$user_id
"
echo
"user_id=
$user_id
"
echo
"uuid=
$uuid
"
echo
"uuid=
$uuid
"
...
...
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