中国高校

快速入门

  1. 区域查询接口都在app/Application/Area/Model目录下,包含省份(Province)、城市(City)、区县(District)
  2. HTTP接口在app/Application/Area/Controller目录下

接口示例

通过关键字获取学校列表

注:keyword为学校名称关键字(示例:广东)

http://{你的站点}/ztbcms/index.php?g=Area&m=Api&a=getSchoolList&keyword=广东

返回数据:

  1. {
  2. "status": "success",
  3. "data": [
  4. {
  5. "school_id": "1814",
  6. "school_name": "广东工业大学",
  7. "province_id": "440000",
  8. "type_id": "1"
  9. },{
  10. "school_id": "1816",
  11. "school_name": "广东海洋大学",
  12. "province_id": "440000",
  13. "type_id": "1"
  14. }
  15. ],
  16. "state": "success"
  17. }

通过省份id获取学校列表

注:province_id 所属省份id

http://{你的站点}/ztbcms/index.php?g=Area&m=Api&a=getSchoolListByProvinceId&province_id=440000

返回数据:

  1. {
  2. "status": "success",
  3. "data": [
  4. {
  5. "school_id": "1808",
  6. "school_name": "中山大学",
  7. "province_id": "440000",
  8. "type_id": "1"
  9. },
  10. {
  11. "school_id": "1809",
  12. "school_name": "华南理工大学",
  13. "province_id": "440000",
  14. "type_id": "1"
  15. }
  16. ],
  17. "state": "success"
  18. }