★ 建站顺序另见《云酷德建站流程法》(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 <定位键>='<资源码>' 查出真实主键再替换。
数据表资源登记。主表 coode_tablist(TABLE_NAME=表名)。字段定义分散在 coode_keydetailx/y/z(列级:显示类型、钩子、SSHOW 脚本)。不落盘、HTTP 访问 403(纯数据,靠主程序消费)。副产物 /localxres/tabx/<表名>/<表名>.js。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 建表 + 登记 | create table 后写 coode_tablist 与 coode_keydetailx(完整流程见 coode-newtable 技能) |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_tablist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_tablist where TABLE_NAME=<资源码> |
| 卸载 | unstallres | restype=tabx&rescode=<资源码>&sysid=0 |
建表不只是 create table:要同步 coode_tablist 登记 + coode_keydetailx 写字段定义(sysshowfun 决定前端怎么渲染),完整流程见 coode-newtable 技能。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_tablist
Cookie: uid=divlovecss; stoken=; deadline= 表单(数据索引)资源。主表 coode_shortdata:shortid=表单码,回答「取哪张表的哪些数据」。配套 coode_shortcss(139) 放扩展代码(diytop/scriptx/stylex…)。落盘 /localxres/formx/
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_shortdata | shortid + caseid(列表模板) + detailid(详情模板),再 savetempdata 烤出 JS |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_shortdata ;POST dt=<新值> |
| 详情 | SQL | select * from coode_shortdata where shortid=<资源码> |
| 卸载 | unstallres | restype=formx&rescode=<资源码>&sysid=0 |
表单靠 caseid(列表模板)和 detailid(详情模板)串联 tempx。烤成 JS 靠 savetempdata,落在 /localxres/tabx/<表>/<shortid>.js,变量名 STDFT<shortid>。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_shortdata
Cookie: uid=divlovecss; stoken=; deadline= 数据空间(给某类数据一个独立命名空间)。主表 coode_dataspace(datamark)。落盘 /localxres/dataspacex/<名>/。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | dspbasecoprt | NS(空间, 标题, "字段(类型),…") 建空间与结构 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_dataspace ;POST dt=<新值> |
| 详情 | SQL | select * from coode_dataspace where datamark=<资源码> |
| 卸载 | unstallres | restype=dataspacex&rescode=<资源码>&sysid=0 |
数据空间 = 九张表的小型数据库,操作全靠 dspbasecoprt 函数集:NS 建空间 / ND 新增 / UD 改 / KD 删 / RD 落盘 / SY 读。
⚠ 空间记录里的归属字段存的是 syskey(字符串),不是 sysid 数字,别拼错。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_dataspace
Cookie: uid=divlovecss; stoken=; deadline= 数据库登记(外部/远端数据库连接信息)。主表 coode_dblist(dbmark)。落盘 /localxres/databasex/<名>/。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_dblist | insert 一条记录,定位键 dbmark;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_dblist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_dblist where dbmark=<资源码> |
| 卸载 | unstallres | restype=databasex&rescode=<资源码>&sysid=0 |
数据库连接登记,主表 coode_dblist,定位键 dbmark。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_dblist
Cookie: uid=divlovecss; stoken=; deadline= 静态量(站点级常量:接口地址、密钥位等)。主表 coode_sysconstant(constantid)。落盘 /localxres/constx/<名>/index.php。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_sysconstant | insert 一条记录,定位键 constantid;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_sysconstant ;POST dt=<新值> |
| 详情 | SQL | select * from coode_sysconstant where constantid=<资源码> |
| 卸载 | unstallres | restype=constx&rescode=<资源码>&sysid=0 |
静态量,主表 coode_sysconstant,定位键 constantid,用来放不常变的常量文本。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_sysconstant
Cookie: uid=divlovecss; stoken=; deadline= 系统参数(按 sysid + syskey 定位)。主表 coode_sysconfig。不落盘。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_sysconfig | insert 一条记录,定位键 sysid.syskey;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_sysconfig ;POST dt=<新值> |
| 详情 | SQL | select * from coode_sysconfig where sysid.syskey=<资源码> |
| 卸载 | unstallres | restype=configx&rescode=<资源码>&sysid=0 |
系统参数,主表 coode_sysconfig。⚠ 复合键 sysid.syskey,查询时两个都要给。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_sysconfig
Cookie: uid=divlovecss; stoken=; deadline= xianfa.data