Files
sentcms/application/api/controller/User.php
2017-09-19 00:14:14 +08:00

25 lines
839 B
PHP

<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\Api\controller;
use app\common\controller\Api;
class User extends Api {
public function login(){
//$this->data['code'] = 1;
return $this->data;
}
public function getuser(\think\Request $request){
$this->data['code'] = 1;
$this->data['data'] = db('Member')->where('uid', $request->param('uid'))->find();
return $this->data;
}
}