|
@@ -51,7 +51,7 @@ class Login extends Controller
|
|
|
**/
|
|
|
//登录功能
|
|
|
public function index(){
|
|
|
-// try{
|
|
|
+ try{
|
|
|
$param = $_REQUEST['param'];
|
|
|
Verify::loginCheck($param);
|
|
|
$sessionid = UUIDs::uuid16();
|
|
@@ -135,9 +135,9 @@ class Login extends Controller
|
|
|
$info['phone'] = $check;
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','info'=>$info,'sessionid'=>$sessionid,'phone'=>$check]);
|
|
|
|
|
|
-// }catch(\Exception $e){
|
|
|
-// return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
-// }
|
|
|
+ }catch(\Exception $e){
|
|
|
+ return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public function loginByLicense(){
|