crmeb-prov4-dev

For secondary development of CRMEB Pro V4 (multi-store) PHP mall based on ThinkPHP 8 + Swoole 4 with front-end/back-end separation. Used when adding business modules/interfaces/controllers/services/models/DAOs/routes/events/queues/middleware, extending stores or franchise onboarding, store financial split accounting, in-store verification, developing backend Vue front end or uni-app mobile client, and installation/deployment and error troubleshooting. Can be triggered by terms such as “CRMEB”, “multi-store”, “crmeb prov4”, “secondary development”, “add module”, “add interface”, “store extension”, “split accounting”, “onboarding”, “verification”, “thinkphp”, “swoole”, “backend front-end”, “uniapp packaging”, etc.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "crmeb-prov4-dev" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a87d6ce89e1c03a7982c4d52158da505e242f0ceabeaa3ef7b0160abdf09f637. Verify the upstream source and version against https://skillhub.cn/skills/user_d7a886ad/crmeb-prov4-dev before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For secondary development of CRMEB Pro V4 (multi-store) PHP mall based on ThinkPHP 8 + Swoole 4 with front-end/back-end separation. Used when adding business modules/interfaces/controllers/services/models/DAOs/routes/events/queues/middleware, extending stores or franchise onboarding, store financial split accounting, in-store verification, developing backend Vue front end or uni-app mobile client, and installation/deployment and error troubleshooting. Can be triggered by terms such as “CRMEB”, “multi-store”, “crmeb prov4”, “secondary development”, “add module”, “add interface”, “store extension”, “split accounting”, “onboarding”, “verification”, “thinkphp”, “swoole”, “backend front-end”, “uniapp packaging”, etc.

0 Downloads

Introduction source: third_party · user_d7a886ad · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: crmeb-prov4-dev
description: CRMEB Pro V4(多门店版)PHP 商城系统的二次开发技能。当用户基于 ThinkPHP 8 + Swoole 4、前后端分离的 CRMEB 多门店 Pro v4 进行二次开发时使用:新增业务模块/接口/控制器/服务(Service)/模型(Model)/DAO/路由/事件/队列/中间件、扩展门店/加盟入驻/门店财务分账/到店核销、开发后台 Vue 前端或 uni-app 移动端、以及安装部署与报错排查。触发词包括"CRMEB""多门店""crmeb prov4""二次开发""新增模块""加接口""门店扩展""分账""入驻""核销""thinkphp""swoole""后台前端""uniapp 打包"等。

CRMEB Pro V4(多门店版)二次开发技能

概述

本技能面向需要在 CRMEB 多门店 Pro v4.0 上进行二次开发的工程师。系统基于 ThinkPHP 8.0 + Swoole 4,前后端分离:后端 PHP 提供标准 JSON 接口,管理后台为 Vue2+ElementUI+Vuex,移动端为 uni-app。多门店版核心是"平台总后台 + 多门店 + 门店财务分账 + 加盟入驻 + 到店核销",订单/商品/财务均与门店强关联。

本技能提供:架构与目录规范、标准后端开发链路(含可复制代码模板)、后台前端与移动端开发、多门店业务扩展点、接口规范、安装部署与高频问题排查。

资料来源:官方开发手册、目录结构说明、API 文档(Apifox 多门店版)、运行环境/安装/使用/FAQ 文档,以及 CRMEB Pro 二次开发公开指南。

何时使用

  • 在 CRMEB 多门店 Pro v4 中新增/扩展功能模块(如门店扩展字段、新业务表单)。
  • 编写后端分层代码:Model、Dao、Services、Controller、Route、Validate、Middleware、事件/监听器、队列任务。
  • 开发或调整后台 Vue 前端页面/接口调用/路由/状态管理。
  • 调整 uni-app 移动端。
  • 处理多门店专属需求:门店数据隔离、加盟入驻审核流、门店财务/分账、到店核销。
  • 安装部署环境配置、Swoole/Supervisor 守护、前端打包发布。
  • 排查报错:500、502、NOAUTH、权限、验证码、登录失效、路由不生效等。

核心原则(动手前必读)

  1. 不要改 crmeb/、vendor/:官方升级会覆盖,自定义只放 app/。
  2. 严格分层:Controller(收参/校验)→ Services(业务)→ Dao(查询/分页)→ Model(结构)。
  3. 事件解耦:跨模块副作用(发券、加积分、通知、分账)用 event() + 监听器,不写进主流程。
  4. 配置驱动:系统参数走 sys_config('key'),不硬编码。
  5. 门店数据隔离:门店端查询强制 store_id 作用域;多套部署必须独立数据库。
  6. Swoole 模式:改代码后 php think clear 清缓存并重启守护进程才生效。

使用流程(按任务选读)

A. 新增后端模块

  1. 读 references/01-architecture.md 了解目录、分层、命名、基类。
  2. 按 references/02-backend-dev.md 的 7 步链路(Model→Dao→Services→Validate→Controller→Route→权限)落地,复制其中的代码模板,按需替换命名与字段。
  3. 需要跨模块副作用时,用第 7(事件)、第 8(队列)节。
  4. 后台表单用第 10 节 FormBuilder。

B. 多门店专属需求

  1. 先读 references/04-multistore.md:业务概念、API 模块地图、门店数据隔离、扩展任务清单(A~E)。
  2. 结合 references/02-backend-dev.md 把代码放 store 子目录,门店端接口放 controller/api/store、route/api.php。
  3. 看 references/08-examples.md 的"门店核销记录"完整示例作为范本。

C. 后台 / 移动端前端

  • 后台:references/03-frontend-admin.md(加 api/页面/路由、Vuex、构建覆盖 public/admin/)。
  • 移动端:uni-app 目录在 view/uniapp/,接口封装在 view/uniapp/api/,页面在 view/uniapp/pages/,状态在 view/uniapp/store/。

D. 接口对接 / 联调

  • 读 references/05-api-conventions.md:响应格式、分页、Token 鉴权、各端前缀、模块分组。

E. 安装 / 部署 / 运维

  • 环境、Swoole/Supervisor、前端打包、多套隔离:references/06-install-deploy.md。
  • 报错排查:references/07-troubleshooting.md(按现象查原因与解决)。

权威资料链接

注意:doc.crmeb.com 文档正文为 JS 动态渲染,浏览器直接打开才能看全文;链接用于人工查阅与核实细节。

交付物约定

  • 后端代码遵循 PSR-4,目录=命名空间;文件名大驼峰+后缀(Controller/Services/Dao/Job)。
  • 给出的示例代码为模板,实际类名/字段/表前缀以目标项目 .env(表前缀)、app/event.php(事件名)、config/swoole.php 等为准。
  • 涉及数据库变更需给出建表/迁移 SQL,并提醒:Swoole 模式改代码后清缓存重启。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 面向 CRMEB 多门店 Pro v4 的二次开发,场景明确且需求高频
  • 涵盖后端模块开发、前端适配、多门店业务扩展、部署运维等全链路
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含 CRMEB、多门店、二次开发、thinkphp、swoole 等核心关键词
  • 边界清晰,能有效命中目标用户
Structure and Standards85/100

Highlights

  • 结构清晰,分概述、何时使用、核心原则、使用流程等章节
  • 使用流程按任务划分,有明确的参考文件指引和端到端示例
Execution Reliability88/100

Highlights

  • 提供了详细的开发链路、代码模板、多门店业务扩展点
  • 涵盖接口规范、安装部署与高频问题排查,可靠性高
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • doc.crmeb.com
  • s.apifox.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.