|
|
|
@ -436,5 +436,13 @@ class Api_SquirrelController extends Ctrl_Api{ |
|
|
|
|
} |
|
|
|
|
Tool_Fnc::apiMsg('设置失败', '500'); |
|
|
|
|
} |
|
|
|
|
public function deleteNewSquirrelAction(){ |
|
|
|
|
$uid = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请登录', '500'):$this->POST['uid']; |
|
|
|
|
$id = empty($this->POST['id'])?Tool_Fnc::apiMsg('幼崽信息获取失败', '500'):$this->POST['id']; |
|
|
|
|
if(!$this->NewSquirrelmodel->where("id={$id} and c_user_id={$uid}")->del()){ |
|
|
|
|
Tool_Fnc::apiMsg('删除失败', '1'); |
|
|
|
|
} |
|
|
|
|
Tool_Fnc::apiMsg('删除成功', '500'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|