修补api/gm接口的几处错误

This commit is contained in:
2025-07-16 03:12:35 +08:00
parent d76625fb34
commit 974cc83476
9 changed files with 80 additions and 29 deletions
@@ -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);