YS:接口更新

master
yangsai@163.com 8 months ago
parent 588c0639ae
commit 76148eb644
  1. 2
      application/controllers/Api/Squirrel.php
  2. 3
      application/models/NewSquirrel.php

@ -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);
}
}

@ -35,8 +35,5 @@ class NewSquirrelModel extends Orm_Base{
}
return $data;
}
public function getFatherAction(){
}
}

Loading…
Cancel
Save