...
|
...
|
@@ -97,24 +97,24 @@ class City extends Api |
|
|
* @ApiReturn ({
|
|
|
"code": 1,
|
|
|
"msg": "获取市的大学成功",
|
|
|
"time": "1586420249",
|
|
|
"time": "1586845398",
|
|
|
"data": [
|
|
|
{
|
|
|
"id": 1,
|
|
|
"name": "哈哈",
|
|
|
"name": "北京大学",
|
|
|
"des_content": "1",
|
|
|
"des_image": "",
|
|
|
"updatetime": 0,
|
|
|
"createtime": 0,
|
|
|
"url": "",
|
|
|
"wechat": "",
|
|
|
"des_image": "/uploads/20200413/39270b1276af4c6af020cc85eb80fb29.jpg",
|
|
|
"updatetime": 1586767790,
|
|
|
"createtime": 1586768302,
|
|
|
"url": "www.beijing.com",
|
|
|
"wechat": "北京大学官方公众号",
|
|
|
"show_switch": 1,
|
|
|
"icon_image": "",
|
|
|
"icon_image": "/assets/img/qrcode.png",
|
|
|
"weigh": 0,
|
|
|
"province_id": 1,
|
|
|
"city_id": 1,
|
|
|
"province_id": 11,
|
|
|
"city_id": 1101,
|
|
|
"deletetime": null,
|
|
|
"level_id": 1
|
|
|
"level_id": 2
|
|
|
}
|
|
|
]
|
|
|
})
|
...
|
...
|
@@ -128,6 +128,12 @@ class City extends Api |
|
|
|
|
|
$university = new UniversityModel();
|
|
|
$universityList = $university->listByCityId($cityId);
|
|
|
|
|
|
foreach ($universityList as $k => $v) {
|
|
|
$universityList[$k]['icon_image'] = $this->qiNiu.$v['icon_image'];
|
|
|
$universityList[$k]['des_image'] = $this->qiNiu.$v['des_image'];
|
|
|
}
|
|
|
|
|
|
$this->success('获取市的大学成功', $universityList);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|