★ 建站顺序另见《云酷德建站流程法》(tempx buildlaw.index,打开章程,2026-10-05 定稿):先名后形 → 计划六表 → 补正 → 开工 → newresname 建名 → 照 funtxt 施工 → samekdatatotab 回填 → 验收。
以前文档里写的是「直接调 API 接口」——那是旧约,作废。所有资源的增删改,一律按下述六步走。
GET 本站域名/localxres/funx/commonlogin/?uid=<账号>&pass=<makepass密文>&sysid=<系统id>msg 就是 stoken。随后 Cookie 必须带 三个值:uid、stoken、deadline=time()+3600*72。$leftt>0 拦掉,现象是 302 静默跳转,接口返回空。funx.newresname?restype=<类型>&rescode=<域.名>&sysid=<系统>&restitle=<标题>coode_userlist 中必须 PRIME=1。tempx 的 rescode 若含点号,点前是域、点后是单元名;不含点号则自动补 .index。coode_sysrestypedefine 按 restypecode 查 cloudpath 字段——它就是该类型资源的编辑器地址。cloudpath 值为 mysql 的,说明这类资源基本不落盘,可以直接改数据;值是一条 URL 的,说明会落盘,必须进编辑器改,直接改库会造成库盘不一致。coode_sysrestypedefine 找到该 restypecode 那一行,读它的 cloudpath 字段,那就是现成的完整编辑器地址,? 后面已经把参数位留好了;你要做的只是把占位符换成资源名或该数据的 SNO 序号。https://qianjilian.com/localxres/tempx/tempeditor/index.html?unitid=xianfa.indexhttps://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=savefunchttps://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=coode_funsetfile@SNO:12345.funfullcoode_funlist 的 usearea 字段声明:它写明该方法允许被哪个页面调用,形如 tempx.tempeditor.index。pgmark(资源类型.目录.单元),拿它和 usearea 比对,不匹配直接判无权。所以「在哪个页面里调」不是形式,是权限本身。heartbeat 的 refreshtoken 方法:校验 stoken 是否有效、刷新 coode_loginstoken 有效期、并下发 deadline。所有「为什么明明登录了还是没权限」的答案都在这里。下表「编辑器 / 落点」列即 coode_sysrestypedefine.cloudpath 的值(已补全域名前缀),可直接复制使用。
| 类型 | 主表 | 编辑器 / 落点(完整地址) |
|---|---|---|
| funx 函数 | coode_funlist | https://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=<函数名> |
| clsx 类 | coode_phpcls | https://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=<类名> |
| sfunx 函数集 | coode_funsetfile | https://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=coode_funsetfile@SNO:<该数据序号>.funfull |
| dfunx 数据函数 | coode_datafun | https://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=coode_funsetfile@SNO:<该数据序号>.funfull |
| constx 静态量 | coode_sysconstant | https://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=coode_funsetfile@SNO:<该数据序号>.funfull |
| configx 系统参数 | coode_sysconfig | https://qianjilian.com/localxres/pagex/htmleditor/WrvLoe/index.html?funid=coode_funsetfile@SNO:<该数据序号>.funfull |
| tempx 模板 | coode_domainunit | https://qianjilian.com/localxres/tempx/tempeditor/index.html?unitid=<域.单元> |
| pagex 页面 | coode_tiny | https://qianjilian.com/localxres/tempx/tinylayeditor/index.html?unitid=<域.单元>&tinyid=<tinymark> |
| mfunx 分布函数 | coode_multifunlist | https://qianjilian.com/localxres/tempx/tinylayeditor/index.html?unitid=resuptool.index&tinyid=o16CUI |
| tabx 表 | coode_tablist | https://qianjilian.com/localxres/funx/anyjsshort/?stid=2qPIqS-sfile:anyjsshort.php-&pnum=150:<表名>&page=1:TABLE_NAME& |
| formx 表单 | coode_shortdata | https://qianjilian.com/localxres/funx/anyjsshort/?datatype=html&stid=keydtly-&pnum=100:<shortid>&page=1:shortid& |
| dataspacex 数据空间 | coode_dataspace | https://qianjilian.com/localxres/tempx/dspcmgr/index.html |
| sysx 系统容器 | coode_sysinformation | mysql:不落盘,可直接改库 |
| appx 应用容器 | coode_appdefault | mysql:不落盘,可直接改库 |
| layx 输出容器 | coode_applay | mysql:不落盘,可直接改库 |
| cdtrdrx 条件跳转 | coode_cdtrdr | mysql:不落盘,可直接改库 |
| parardrx 参数跳转 | coode_parardr | mysql:不落盘,可直接改库 |
| groupx 一级分类 | coode_grouplist | mysql:不落盘,可直接改库 |
| plotx 节点 | coode_plotlist | mysql:不落盘,可直接改库 |
| csspagex 样式页面 | coode_facelist | mysql:不落盘,可直接改库 |
| iconsetx 图标库 | coode_iconset | mysql:不落盘,可直接改库 |
| databasex 数据库 | coode_dblist | mysql:不落盘,可直接改库 |
| afunx 事务函数 | coode_affairfunlist | mysql:不落盘,可直接改库 |
| parax 外部框架 | coode_para | mysql:不落盘,可直接改库 |
| apix 接口密钥 | coode_apipool | mysql:不落盘,可直接改库 |
| smallcssx 小CSS | coode_codedemo | mysql:不落盘,可直接改库 |
不产出内容,负责把页面组织成一个系统。下面每一种都给出操作接口、关键参数和一个可直接跑的示例;要看图解和完整步骤,点「完整操作页」。
图:这一类资源在云酷德体系里所处的位置
编号说明:本页所有 SNO:8848 都是数据编号示例,仅供参考,非真实数据。真用的时候,先 select SNO from <表> where <定位键>='<资源码>' 查出真实主键再替换。
系统容器(四层容器树第 1 层)。主表 coode_sysinformation,sysid=系统码、sysname=中文名。共 11 个系统。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_sysinformation | sysid(数字) + syskey(字符串) + sysname |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_sysinformation ;POST dt=<新值> |
| 详情 | SQL | select * from coode_sysinformation where sysid=<资源码> |
| 卸载 | unstallres | restype=sysx&rescode=<资源码>&sysid=0 |
系统容器 = 四层树的第一层:sysx → appx → layx → pagex。⚠ coode_sysinformation 有两种标识:sysid(数字)和 syskey(字符串)。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_sysinformation
Cookie: uid=divlovecss; stoken=; deadline= 应用容器(四层容器树第 2 层:sysx→appx→layx→pagex)。主表 coode_appdefault(appid)。共 50 条。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_appdefault | appid 定位,挂在 sysx 下 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_appdefault ;POST dt=<新值> |
| 详情 | SQL | select * from coode_appdefault where appid=<资源码> |
| 卸载 | unstallres | restype=appx&rescode=<资源码>&sysid=0 |
应用容器,主表 coode_appdefault,定位键 appid。挂在 sysx 下。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_appdefault
Cookie: uid=divlovecss; stoken=; deadline= 输出容器(四层容器树第 3 层)。主表 coode_applay(layid)。共 712 条。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_applay | layid 定位,页面挂在 layx 下 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_applay ;POST dt=<新值> |
| 详情 | SQL | select * from coode_applay where layid=<资源码> |
| 卸载 | unstallres | restype=layx&rescode=<资源码>&sysid=0 |
输出容器,主表 coode_applay,定位键 layid。页面挂在 layx 下输出。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_applay
Cookie: uid=divlovecss; stoken=; deadline= 页面实例(末端产物)。主表 coode_tiny:tinymark=页面码,tempid=来源模板、shortid=来源表单。落盘 /localxres/pagex/
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_tiny | tinymark 定位,挂到 layx 下面 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_tiny ;POST dt=<新值> |
| 详情 | SQL | select * from coode_tiny where tinymark=<资源码> |
| 卸载 | unstallres | restype=pagex&rescode=<资源码>&sysid=0 |
页面是末端产物:系统 = N 个页面。主表 coode_tiny,定位键 tinymark。通用列表页入口 /localxres/funx/anyjsshort/?stid=<shortid>-pnum:30-。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_tiny
Cookie: uid=divlovecss; stoken=; deadline= 一级分类(分类树的顶层)。主表 coode_grouplist(plotmark),子级在 coode_grpclass.clsmark。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_grouplist | insert 一条记录,定位键 plotmark;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_grouplist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_grouplist where plotmark=<资源码> |
| 卸载 | unstallres | restype=groupx&rescode=<资源码>&sysid=0 |
一级分类,主表 coode_grouplist,定位键 plotmark(与 plotx 同名键,注意别混)。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_grouplist
Cookie: uid=divlovecss; stoken=; deadline= 节点 / 菜单项。主表 coode_plotlist(plotmark),明细在 coode_plotdetail(layid)。不落盘。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_plotlist | insert 一条记录,定位键 plotmark;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_plotlist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_plotlist where plotmark=<资源码> |
| 卸载 | unstallres | restype=plotx&rescode=<资源码>&sysid=0 |
节点,主表 coode_plotlist,定位键 plotmark。节点挂在分类下面构成树。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_plotlist
Cookie: uid=divlovecss; stoken=; deadline= 条件跳转。主表 coode_cdtrdr(cdtmark + cdtval 两个列)。落盘 /localxres/cdtrdrx/<名>/。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_cdtrdr | insert 一条记录,定位键 cdtmark.cdtval;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_cdtrdr ;POST dt=<新值> |
| 详情 | SQL | select * from coode_cdtrdr where cdtmark.cdtval=<资源码> |
| 卸载 | unstallres | restype=cdtrdrx&rescode=<资源码>&sysid=0 |
条件跳转,主表 coode_cdtrdr。⚠ 复合键是 cdtmark.cdtval,中间那个点是分隔,不是列拼接,别无脑 CONCAT。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_cdtrdr
Cookie: uid=divlovecss; stoken=; deadline= 参数跳转(按参数名把请求跳到不同目标)。主表 coode_parardr(paramark)。落盘 /localxres/parardrx/<名>/。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_parardr | insert 一条记录,定位键 paramark;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_parardr ;POST dt=<新值> |
| 详情 | SQL | select * from coode_parardr where paramark=<资源码> |
| 卸载 | unstallres | restype=parardrx&rescode=<资源码>&sysid=0 |
参数跳转,主表 coode_parardr,定位键 paramark。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_parardr
Cookie: uid=divlovecss; stoken=; deadline= xianfa.sys