Commit e5a4e4a6 by 冷斌

族员审核列表

parent 20164688
......@@ -265,7 +265,6 @@ class Api_User extends PhalApi_Api {
'familyAuthList' => array(
'uid' => array('name' => 'uid', 'type' => 'int', 'min' => 1, 'require' => true, 'desc' => '用户ID'),
'token' => array('name' => 'token', 'type' => 'string', 'require' => true, 'desc' => '用户token'),
'version_ios' => array('name' => 'version_ios', 'type' => 'string', 'desc' => 'IOS版本号'),
),
);
......@@ -2153,6 +2152,7 @@ class Api_User extends PhalApi_Api {
$rs = array('code' => 0, 'msg' => '审核成功', 'info' => array());
$uid=checkNull($this->uid);
$token=checkNull($this->token);
$id = checkNull($this->id);
$checkToken=checkToken($uid,$token);
if($checkToken==700){
......@@ -2162,7 +2162,7 @@ class Api_User extends PhalApi_Api {
}
$domain = new Domain_User();
$result = $domain->familyAuthList($uid);
$result = $domain->familyAuth($id, $uid);
if (in_array($result, [0, 3])) {
$rs['code'] = 10001;
$rs['msg'] = '无权访问!';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment