Commit 90dc0d68 authored by 智勇's avatar 智勇

up

parent 5383f1d4
......@@ -24,6 +24,7 @@ function authorization()
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}"`
echo "user_id=$user_id"
......
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