table($table) 自动补前缀 * field 列名;列还不存在时扫描会自动跳过,所以可以提前登记规划中的字段 * kind single 整个字段就是一个地址 * multi 逗号分隔的多个地址 * rich 富文本 / Markdown,需要正则从 src、href、url() 与 ![](…) 里抽取 */ return [ /* * ---------------- LGP 业务表(business 连接,cc_ 前缀)---------------- */ ['connection' => 'business', 'table' => 'catalogue', 'field' => 'cover', 'kind' => 'single'], ['connection' => 'business', 'table' => 'catalogue', 'field' => 'pdf', 'kind' => 'single'], // video 列在部分环境还没上线,扫描时按 hasColumn 跳过,不影响其余字段 ['connection' => 'business', 'table' => 'catalogue', 'field' => 'video', 'kind' => 'single'], ['connection' => 'business', 'table' => 'image', 'field' => 'url', 'kind' => 'single'], ['connection' => 'business', 'table' => 'carousel', 'field' => 'url', 'kind' => 'single'], ['connection' => 'business', 'table' => 'category', 'field' => 'url', 'kind' => 'single'], ['connection' => 'business', 'table' => 'colorcard', 'field' => 'cover', 'kind' => 'single'], ['connection' => 'business', 'table' => 'factory_info', 'field' => 'cover', 'kind' => 'single'], ['connection' => 'business', 'table' => 'factory_image', 'field' => 'url', 'kind' => 'single'], ['connection' => 'business', 'table' => 'enterprise', 'field' => 'logo', 'kind' => 'single'], // 微信头像多数是腾讯 CDN 地址,匹配不上任何素材;登记它是为了兜住 // 「后台替用户换成自己上传的头像」这种情况 ['connection' => 'business', 'table' => 'wx_user', 'field' => 'avatar', 'kind' => 'single'], /* * ---------------- 系统表(mysql 连接,nl_ 前缀)---------------- */ ['connection' => 'mysql', 'table' => 'admin', 'field' => 'avatar', 'kind' => 'single'], ['connection' => 'mysql', 'table' => 'wechat_article', 'field' => 'cover_url', 'kind' => 'single'], // 图文正文是 Markdown,图片以 ![](url) 的形式散在全文里 ['connection' => 'mysql', 'table' => 'wechat_article', 'field' => 'content_md', 'kind' => 'rich'], // 版本流水存的是历史正文快照:回退到旧版本要能把图找回来,所以一并算引用 ['connection' => 'mysql', 'table' => 'wechat_article_version', 'field' => 'content_md', 'kind' => 'rich'], ];