★ 建站顺序另见《云酷德建站流程法》(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 <定位键>='<资源码>' 查出真实主键再替换。
PHP 函数资源,云酷德最小的可执行单元。主表 coode_funlist:funname=资源名(英文码)、funcname=中文标题、funfull=正文(HEX)。落盘 /localxres/funx/<名>/index.php,HTTP 端点 /localxres/funx/<名>/ 。响应统一信封 maker…
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | savefunc | GET fn=<函数名> + POST dt=<PHP正文>(不带 <?php 头、不写正则、零反斜杠) |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_funlist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_funlist where funname=<资源码> |
| 卸载 | unstallres | restype=funx&rescode=<资源码>&sysid=0 |
落盘 /localxres/funx/<名>/index.php,HTTP 端点直接就是 /localxres/funx/<名>/。五条铁律:不带 <?php 头 / 不能出现连续 TYPE_HEX / 不能写正则 / % 后必须空格或括号 / 裸单引号用 dyh() 拼。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_funlist
Cookie: uid=divlovecss; stoken=; deadline= PHP 函数集(一段可 eval 的公共代码库)。主表 coode_funsetfile:setname=资源名、setcname=中文标题、funfull=正文。落盘 /localxres/sfunx/<名>/index.php,由 RESFUNSET()(EARTH L167) 加载,磁盘优先。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | savefunc | GET fn=<键>@<表>.<列> + POST dt=<函数集正文> |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_funsetfile ;POST dt=<新值> |
| 详情 | SQL | select * from coode_funsetfile where setname=<资源码> |
| 卸载 | unstallres | restype=sfunx&rescode=<资源码>&sysid=0 |
函数集 = 一堆函数的容器。写入用 savefunc?fn=SNO:<主键>.<字段>@<表>,调用用 eval(RESFUNSET("名"))。⚠ 函数集里定义的函数名多是全局的(如 dspbasecoprt 的 NS/ND/UD/RD/SY),用前确认没撞车。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_funsetfile
Cookie: uid=divlovecss; stoken=; deadline= PHP 类资源。主表 coode_phpcls:funname=类名、funcname=中文标题。落盘 /localxres/clsx/<名>/index.php,由 CLASSX()(EARTH L137) 加载,磁盘优先。funx 里用 eval(CLASSX(”shortlist”)) 的方式调用。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_phpcls | funname=类名、funcname=中文标题;落盘 clsx/<名>/index.php |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_phpcls ;POST dt=<新值> |
| 详情 | SQL | select * from coode_phpcls where funname=<资源码> |
| 卸载 | unstallres | restype=clsx&rescode=<资源码>&sysid=0 |
PHP 类资源。落盘 /localxres/clsx/<名>/index.php,磁盘优先加载。在 funx 里用 eval(CLASSX("名")) 调用。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_phpcls
Cookie: uid=divlovecss; stoken=; deadline= 数据函数。主表 coode_datafun(dfunmark)。落盘 /localxres/dfunx/<名>/index.php。依赖 tabx.any(任意表)。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_datafun | insert 一条记录,定位键 dfunmark;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_datafun ;POST dt=<新值> |
| 详情 | SQL | select * from coode_datafun where dfunmark=<资源码> |
| 卸载 | unstallres | restype=dfunx&rescode=<资源码>&sysid=0 |
数据函数,主表 coode_datafun,定位键 dfunmark。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_datafun
Cookie: uid=divlovecss; stoken=; deadline= 分布函数(同一个函数分发到多站点/多版本)。主表 coode_multifunlist(funname)。落盘 /localxres/mfunx/<名>/index.php。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_multifunlist | insert 一条记录,定位键 funname;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_multifunlist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_multifunlist where funname=<资源码> |
| 卸载 | unstallres | restype=mfunx&rescode=<资源码>&sysid=0 |
分布函数:主表 coode_multifunlist + 索引表 coode_multifunindex,落盘四个文件。字段渲染走通用 sysshowfun + exchangeunit 机制。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_multifunlist
Cookie: uid=divlovecss; stoken=; deadline= 事务函数(一组要一起执行的动作)。主表 coode_affairfunlist(funname)。落盘 /localxres/afunx/<名>/index.php。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写主表 coode_affairfunlist | insert 一条记录,定位键 funname;库 + 盘 + 索引要一起对上 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_affairfunlist ;POST dt=<新值> |
| 详情 | SQL | select * from coode_affairfunlist where funname=<资源码> |
| 卸载 | unstallres | restype=afunx&rescode=<资源码>&sysid=0 |
事务函数,主表 coode_affairfunlist,定位键 funname,与 funx 同构但用于事务编排。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_affairfunlist
Cookie: uid=divlovecss; stoken=; deadline= API 接口池(外部接口登记)。主表 coode_apipool(apicode)。不落盘。
| 操作 | 接口 | 关键参数 |
|---|---|---|
| 创建 | 写 coode_apipool | apicode 定位,登记接口地址与参数 |
| 补充 | savefunc | GET fn=SNO:8848.<字段名>@coode_apipool ;POST dt=<新值> |
| 详情 | SQL | select * from coode_apipool where apicode=<资源码> |
| 卸载 | unstallres | restype=apix&rescode=<资源码>&sysid=0 |
API 接口池,主表 coode_apipool,定位键 apicode,登记对外/对内的接口。
POST 本站域名/localxres/funx/savefunc/?fn=SNO:8848.unittitle@coode_apipool
Cookie: uid=divlovecss; stoken=; deadline= xianfa.fun