|
|
|
@ -250,7 +250,7 @@ class Api_SquirrelController extends Ctrl_Api{ |
|
|
|
|
public function getparentsAction(){ |
|
|
|
|
$data['sex'] = empty($this->POST['sex'])||!isset($this->POST['sex'])?Tool_Fnc::apiMsg('缺少性别参数', '500'):Tool_Fnc::safe_string($this->POST['sex']); |
|
|
|
|
$return = $this->Squirrelmodel->partent($data); |
|
|
|
|
Tool_Fnc::apiMsg('添加成功', '200',$return); |
|
|
|
|
Tool_Fnc::apiMsg('获取成功', '200',$return); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|