迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
https://www.xunruicms.com/v3doc/222.html,类型以前poscms的api通用接口,讯睿还有吗?找了一下文档没有这类的通用接口了啊?
select * from dr_1_down_order where uid=1 and cid=1
//原来poscms是这样写的 ¶m=list action=sql sql='select * from dr_member where uid=1'
{sql sql='select * from dr_1_down_order where uid=1 and cid=1'} {php $api[$key]=[];} {php $api[$key]['id']=$t['id'];} {php $api[$key]['字段']=$t['字段'];} {/sql}
http://域名/index.php?c=api&m=data2&auth=472869ef85d15227acb937eac8d89243¶m=list action=sql sql='select * from dr_1_down_order where uid=动态 and cid=动态'
//比如这样,通过一个中转文件url方式获取指定sn订单号信息 //http://www.baidu.com/order.php?sn=202301011808 <?php if(isset($_GET['sn'])){ header("Access-Control-Allow-Origin: *"); $cid = $_GET['sn']; $api = "https://域名/index.php?c=api&m=data2&format=jsonp&auth=1ffbb79a9b8ec0058d1c389cc5664cc4¶m=list action=sql sql='select * from dr_1_down_order where sn=$sn'"; $json = file_get_contents($api); echo $json; } ?>
参考文档:《任意页面查询API接口》