|
|
|
@ -1121,6 +1121,13 @@ class UserModel extends Model{
|
|
|
|
|
]);
|
|
|
|
|
if (!$r) {
|
|
|
|
|
M('user_token','tab_')->rollback();
|
|
|
|
|
$msg = array(
|
|
|
|
|
"status" => 5,
|
|
|
|
|
"return_code" => 5,
|
|
|
|
|
"return_msg" => "数据出错",
|
|
|
|
|
"msg" => '1'
|
|
|
|
|
);
|
|
|
|
|
echo base64_encode(json_encode($msg));
|
|
|
|
|
exit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1132,8 +1139,15 @@ class UserModel extends Model{
|
|
|
|
|
'login_cnt' => $userTokens['login_cnt'] + 1,
|
|
|
|
|
'update_time' => time()
|
|
|
|
|
]);
|
|
|
|
|
if (!$r) {
|
|
|
|
|
if ($r === false) {
|
|
|
|
|
M('user_token','tab_')->rollback();
|
|
|
|
|
$msg = array(
|
|
|
|
|
"status" => 5,
|
|
|
|
|
"return_code" => 5,
|
|
|
|
|
"return_msg" => "数据出错2",
|
|
|
|
|
"msg" => '1'
|
|
|
|
|
);
|
|
|
|
|
echo base64_encode(json_encode($msg));
|
|
|
|
|
exit();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -1145,7 +1159,7 @@ class UserModel extends Model{
|
|
|
|
|
'login_cnt' => $userTokens['login_cnt'] + 1,
|
|
|
|
|
'update_time' => time()
|
|
|
|
|
]);
|
|
|
|
|
if (!$r) {
|
|
|
|
|
if ($r === false) {
|
|
|
|
|
M('user_token','tab_')->rollback();
|
|
|
|
|
exit();
|
|
|
|
|
}
|
|
|
|
|