TP5.0 API调用 TP5.0 API调用首先创建一个api模块 里面有controller model也可以不写(和外面的model共用),一般返回的为json格式 例子: 推荐使用下面的(404可能有些APP不支持)