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
4a87c7a0
Commit
4a87c7a0
authored
Jan 23, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 7
parent
97d74ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spider_center_authorization.sh
...cript/script_by_Contorller/spider_center_authorization.sh
+3
-2
No files found.
qa_shell_script/script_by_Contorller/spider_center_authorization.sh
View file @
4a87c7a0
...
@@ -61,11 +61,12 @@ if [[ $user_authorization_type == "" ]] ;then
...
@@ -61,11 +61,12 @@ if [[ $user_authorization_type == "" ]] ;then
user_authorization_insert
=
"INSERT INTO spider_center.user_authorization ( auth_type, last_auth_time, auth_account_name, user_id, auth_status)
user_authorization_insert
=
"INSERT INTO spider_center.user_authorization ( auth_type, last_auth_time, auth_account_name, user_id, auth_status)
VALUES
VALUES
(3, now(), NULL,
${
spider_center_user_id
}
, 1),
(3, now(), NULL,
${
spider_center_user_id
}
, 1),
(0, now(), NULL,
${
spider_center_user_id
}
, 1);"
(0, now(), NULL,
${
spider_center_user_id
}
, 1),
(7, now(), NULL,
${
spider_center_user_id
}
, 1);"
mysql
$mysql3
-e
"set names utf8;
${
user_authorization_insert
}
"
mysql
$mysql3
-e
"set names utf8;
${
user_authorization_insert
}
"
fi
fi
if
[[
${
user_authorization_type
[*]
}
=
~
"3"
||
${
user_authorization_type
[*]
}
=
~
"0"
&&
$user_authorization_status
!=
"1"
]]
;
then
if
[[
${
user_authorization_type
[*]
}
=
~
"3"
||
${
user_authorization_type
[*]
}
=
~
"0"
&&
$user_authorization_status
!=
"1"
]]
;
then
mysql
$mysql3
-e
"update spider_center.user_authorization set auth_status=1 where user_id=
${
spider_center_user_id
}
and auth_type in (0,3);"
mysql
$mysql3
-e
"update spider_center.user_authorization set auth_status=1 where user_id=
${
spider_center_user_id
}
and auth_type in (0,3
,7
);"
fi
fi
echo
"运营商、芝麻信用验证通过"
echo
"运营商、芝麻信用验证通过"
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