修补api/gm接口的几处错误
This commit is contained in:
@@ -42,10 +42,14 @@
|
||||
if (!$res) {
|
||||
$this->result('没有查询到相应的数据!', [], 0);
|
||||
}
|
||||
$weituoren = [];
|
||||
foreach ($res as $key=>$val) {
|
||||
$weituoren[$key] = $val->toArray();
|
||||
}
|
||||
|
||||
$data= [
|
||||
'total'=>$s['query']->count(),
|
||||
'weituoren' => $res,
|
||||
'weituoren' => $weituoren,
|
||||
'page'=>$this->page
|
||||
];
|
||||
$this->result('合作单位查询成功!', $data, 200);
|
||||
|
||||
Reference in New Issue
Block a user