yangsai@163.com 6 months ago
parent 2db25c42e6
commit e79c065074
  1. 2
      application/controllers/Api/Sysset.php

@ -54,7 +54,7 @@ class Api_SyssetController extends Ctrl_Api{
$data = $UserModel->field("*")->where("id={$uid}")->fRow(); $data = $UserModel->field("*")->where("id={$uid}")->fRow();
//获取笼位数量 //获取笼位数量
$Cagemodel = new CageModel(); $Cagemodel = new CageModel();
$CageNum = $Cagemodel->field('count(*) as num')->where("c_user_id={$uid}")->fRow(); $CageNum = $Cagemodel->field('count(*) as num')->where("c_user_id={$uid} and is_delete=0")->fRow();
$data['cage_num'] = $CageNum['num']; $data['cage_num'] = $CageNum['num'];
unset($data['password']); unset($data['password']);
Tool_Fnc::apiMsg('获取成功', '200',$data); Tool_Fnc::apiMsg('获取成功', '200',$data);

Loading…
Cancel
Save