|
|
|
@ -247,5 +247,10 @@ class Api_SquirrelController extends Ctrl_Api{ |
|
|
|
|
if(!$ret) Tool_Fnc::apiMsg('添加失败', '500'); |
|
|
|
|
Tool_Fnc::apiMsg('添加成功', '200'); |
|
|
|
|
} |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|