|
|
@ -44,6 +44,7 @@ class Api_SquirrelController extends Ctrl_Api{ |
|
|
|
* } |
|
|
|
* } |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function listAction(){ |
|
|
|
public function listAction(){ |
|
|
|
|
|
|
|
$uid = empty($this->POST['uid'])||!isset($this->POST['cage_id'])?Tool_Fnc::apiMsg('请先登录', '500'):Tool_Fnc::safe_string($this->POST['uid']); |
|
|
|
$cage = empty($this->POST['cage_id'])||!isset($this->POST['cage_id'])?Tool_Fnc::apiMsg('缺少重要参数', '500'):Tool_Fnc::safe_string($this->POST['cage_id']); |
|
|
|
$cage = empty($this->POST['cage_id'])||!isset($this->POST['cage_id'])?Tool_Fnc::apiMsg('缺少重要参数', '500'):Tool_Fnc::safe_string($this->POST['cage_id']); |
|
|
|
$type = empty($this->POST['type'])||!isset($this->POST['type'])?1:Tool_Fnc::safe_string($this->POST['type']); |
|
|
|
$type = empty($this->POST['type'])||!isset($this->POST['type'])?1:Tool_Fnc::safe_string($this->POST['type']); |
|
|
|
$params['where'] = "and cage = {$cage}"; |
|
|
|
$params['where'] = "and cage = {$cage}"; |
|
|
|