diff --git a/application/controllers/Api/Sysset.php b/application/controllers/Api/Sysset.php index 52a3091..c11a8f8 100644 --- a/application/controllers/Api/Sysset.php +++ b/application/controllers/Api/Sysset.php @@ -63,7 +63,7 @@ class Api_SyssetController extends Ctrl_Api{ $Squirrel = new SquirrelModel(); $CageModel = new CageModel(); //获取用户excel设置 - $params['user_id'] = $_GET['uid']; + $params['user_id'] = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid']; $excelSet= $this->ExcelSetModel->getsetinfo($params); $header = ['number'=>"编号",'sex'=>"性别","birthday"=>"生日","strains_id"=>"品系","gene"=>"基因","cage_num"=>"笼号","content"=>"描述","hair_color"=>"毛色","fenlong"=>"分笼","fanzhi"=>"配繁","breeding_tag"=>"体重","see_bole_tag"=>"见栓","give_medicine"=>"给药","father"=>"父亲","mother"=>"母亲","remark"=>"备注"]; $field = ['number'=>"number",'sex'=>"sex","birthday"=>"birthday","strains_id"=>"strains_id","gene"=>"gene","cage_num"=>"cage","content"=>"remark as content","hair_color"=>"hair_color","fenlong"=>"created","fanzhi"=>"grow_time","breeding_tag"=>"grow_time as weight","see_bole_tag"=>"infertility_time","give_medicine"=>"nursing_time","father"=>"father","mother"=>"mother","remark"=>"remark"];