yangsai@163.com 8 months ago
parent de5c377524
commit ef98ad8a5d
  1. 4
      application/controllers/Api/Squirrel.php

@ -1,7 +1,7 @@
<?php <?php
/** /**
* 鼠笼笼位相关接口 * 鼠相关接口
* @author YS * @author YS
* @version 1.0 * @version 1.0
*/ */
@ -191,7 +191,7 @@ class Api_SquirrelController extends Ctrl_Api{
* } * }
* } * }
*/ */
public function getInfoAction(){ public function getInfosAction(){
$id = empty($this->POST['id'])||!isset($this->POST['id'])?Tool_Fnc::apiMsg('小鼠ID缺失', '500'):Tool_Fnc::safe_string($this->POST['id']); $id = empty($this->POST['id'])||!isset($this->POST['id'])?Tool_Fnc::apiMsg('小鼠ID缺失', '500'):Tool_Fnc::safe_string($this->POST['id']);
$data = $this->Squirrelmodel->getOneInfo($id); $data = $this->Squirrelmodel->getOneInfo($id);
Tool_Fnc::apiMsg('获取成功', '200',$data); Tool_Fnc::apiMsg('获取成功', '200',$data);

Loading…
Cancel
Save