https://building.dh0359.com/api/v1.Index/RecordDetail1?record_id=2
伪静态配置了吗?
配过了
伪静态配置的话,请求query或header中加server=1
我也加了
那估计是访问的路径有问题
https://building.dh0359.com/index.php/api/v1.Index/RecordDetail1?record_id=2 https://building.dh0359.com/api/v1.Index/RecordDetail1?record_id=2&server=1
https://building.dh0359.com/index.php/api/v1.Index/RecordDetail1?record_id=2
https://building.dh0359.com/api/v1.Index/RecordDetail1?record_id=2&server=1
这样两种方式都可以..
个人比较喜欢第一种.不需要新增query或者header
你的默认文件还是index.php 可以修改为index.html
伪静态配置了吗?
配过了
伪静态配置的话,请求query或header中加server=1
我也加了
那估计是访问的路径有问题
https://building.dh0359.com/index.php/api/v1.Index/RecordDetail1?record_id=2
https://building.dh0359.com/api/v1.Index/RecordDetail1?record_id=2&server=1
这样两种方式都可以..
个人比较喜欢第一种.不需要新增query或者header
你的默认文件还是index.php
可以修改为index.html
- 1
前往