YS:修改接口信息

master
yangsai@163.com 7 months ago
parent 046b738ac7
commit eb328a4ff1
  1. 1
      application/controllers/Api/Login.php
  2. 1
      application/controllers/Api/Squirrel.php

@ -45,6 +45,7 @@
empty($Userinfo)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo;
$Userinfo['password']!=md5($Password.Yaf_Registry::get("config")->psd->default->appsecret)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo['password'];
unset($Userinfo['password']);
$Userinfo['uid'] = $Userinfo['id'];
unset($Userinfo['id']);
if($Userinfo['status']!=1) Tool_Fnc::apiMsg('等待管理审核', '500');

@ -44,6 +44,7 @@ class Api_SquirrelController extends Ctrl_Api{
* }
*/
public function listAction(){
$uid = empty($this->POST['uid'])||!isset($this->POST['cage_id'])?Tool_Fnc::apiMsg('请先登录', '500'):Tool_Fnc::safe_string($this->POST['uid']);
$cage = empty($this->POST['cage_id'])||!isset($this->POST['cage_id'])?Tool_Fnc::apiMsg('缺少重要参数', '500'):Tool_Fnc::safe_string($this->POST['cage_id']);
$type = empty($this->POST['type'])||!isset($this->POST['type'])?1:Tool_Fnc::safe_string($this->POST['type']);
$params['where'] = "and cage = {$cage}";

Loading…
Cancel
Save