|
|
@ -14,9 +14,12 @@ class LoginNotifyController extends Controller {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function login_verify(){
|
|
|
|
public function login_verify(){
|
|
|
|
$request = json_decode(file_get_contents("php://input"),true);
|
|
|
|
$request = json_decode(file_get_contents("php://input"),true);
|
|
|
|
|
|
|
|
if (empty($request)) {
|
|
|
|
|
|
|
|
$request = I("post.");
|
|
|
|
if (empty($request)) {
|
|
|
|
if (empty($request)) {
|
|
|
|
echo json_encode(array('status'=>1066,'msg'=>'数据异常'));exit();
|
|
|
|
echo json_encode(array('status'=>1066,'msg'=>'数据异常'));exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
$user = M("user","tab_")->find($request['user_id']);
|
|
|
|
$user = M("user","tab_")->find($request['user_id']);
|
|
|
|
if($request['token'] == $user['token']){
|
|
|
|
if($request['token'] == $user['token']){
|
|
|
|
echo json_encode(array('status'=>200,'user_id'=>$user['id'],"user_account"=>$user['account']));exit();
|
|
|
|
echo json_encode(array('status'=>200,'user_id'=>$user['id'],"user_account"=>$user['account']));exit();
|
|
|
|