接口
This commit is contained in:
@@ -21,7 +21,6 @@ class Index extends Api {
|
||||
$appsecret = $request->post('appsecret', '');
|
||||
|
||||
$client = db('Client')->where('appid', $appid)->where('appsecret', $appsecret)->value('id');
|
||||
$client = 1;
|
||||
if ($client) {
|
||||
$this->data['time'] = time();
|
||||
$tokens = $appid . '|' . $appsecret . '|' . $this->data['time'];
|
||||
|
||||
@@ -17,7 +17,9 @@ class User extends Api {
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getuser(){
|
||||
|
||||
public function getuser(\think\Request $request){
|
||||
$this->data['code'] = 1;
|
||||
$this->data['data'] = db('Member')->where('uid', $request->param('uid'))->find();
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user