Commit 4a87c7a0 authored by tywldx's avatar tywldx

add 7

parent 97d74ed9
...@@ -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 "运营商、芝麻信用验证通过"
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