1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-05 07:27:21 +00:00

修复部分BUG...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-31 20:00:01 +08:00
parent 67ec2a329a
commit 17a9ae06a2
5 changed files with 28 additions and 68 deletions

View File

@ -12,11 +12,6 @@ class authme extends AmysqlModel {
"world" => 'world',
"email" => $mail
);
$ic = array (
"username" => $username,
"balance" => "30",
"hidden" => "0"
);
$data = array (
"address" => $mail,
'verify' => '',
@ -24,15 +19,11 @@ class authme extends AmysqlModel {
'time' => date ( 'Y-m-d' ),
"user" => $username
);
if ($this->_insert ( 'authme', $value ) == 0) {
$this->_insert ( 'mail', $data );
if ($this->_insert ( 'authme', $value ) != 0)
return true;
else
return false;
} else {
if ($this->_insert ( 'mail', $data ) == 0) {
return false;
} else {
return false;
}
}
}
public function login($username, $password) {
if ($this->_sum ( "SELECT * FROM `authme` WHERE `username` = '$username' AND `password` = '$password'" ) == 0)