app-自定义返回数据变量 CMS3


默认返回JSON数据格式参数为:msg、code、total、id、return等等

开发者可以在URL参数中加上&return=my

这时候返回数据格式对应参数就是:my_msg、my_code 等等


实例接口URL

/index.php?c=api&m=data2&auth=472869ef85d15227acb937eac8d89243&return=my

返回变量就加上了my的前缀了


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回