Files
huangjingfen/pro_v3.5.1_副本/app/event.php
apple 434aa8c69d feat(fsgx): 完成全部24项开发任务 Phase1-7
Phase1 后端核心:
- 新增 fsgx_v1.sql 迁移脚本(is_queue_goods/frozen_points/available_points/no_assess)
- SystemConfigServices 返佣设置扩展(周期人数/分档比例/范围/时机)
- StoreOrderCreateServices 周期循环佣金计算
- StoreOrderTakeServices 佣金发放后同步冻结积分
- StoreProductServices/StoreProduct 保存 is_queue_goods

Phase2 后端接口:
- GET /api/hjf/brokerage/progress 佣金周期进度
- GET /api/hjf/assets/overview 资产总览
- HjfPointsServices 每日 frozen_points 0.4‰ 释放定时任务
- PUT /adminapi/hjf/member/{uid}/no_assess 不考核接口
- GET /adminapi/hjf/points/release_log 积分日志接口

Phase3 前端清理:
- hjfCustom.js 路由精简(仅保留 points/log)
- hjfQueue.js/hjfMember.js API 清理/重定向至 CRMEB 原生接口
- pages.json 公排→推荐佣金/佣金记录/佣金规则

Phase4-5 前端改造:
- queue/status.vue 推荐佣金进度页整体重写
- 商品详情/订单确认/支付结果页文案与逻辑改造
- 个人中心/资产页/引导页/规则页文案改造
- HjfQueueProgress/HjfRefundNotice/HjfAssetCard 组件改造
- 推广中心嵌入佣金进度摘要
- hjfMockData.js 全量更新(公排字段→佣金字段)

Phase6 Admin 增强:
- 用户列表新增 frozen_points/available_points 列及不考核操作按钮
- hjfPoints.js USE_MOCK=false 对接真实积分日志接口

Phase7 配置文档:
- docs/fsgx-phase7-config-checklist.md 后台配置与全链路验收清单

Made-with: Cursor
2026-03-23 22:32:19 +08:00

120 lines
8.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
// 事件定义文件
return [
'bind' => [
],
'listen' => [
'AppInit' => [],
'HttpRun' => [],
'HttpEnd' => [\app\listener\system\http\HttpEnd::class], //HTTP请求结束回调事件
'LogLevel' => [],
'LogWrite' => [],
//swoole 初始化事件
'swoole.init' => [
\crmeb\listeners\InitSwooleLockListen::class, //初始化
],
//swoole 启动事件
'swoole.workerStart' => [
\crmeb\listeners\SwooleStartListen::class,
],
'swoole.workerExit' => [],
'swoole.workerError' => [],
'swoole.workerStop' => [],
'swoole.shutDown' => [\crmeb\listeners\SwooleShutdownListen::class],//swoole 停止事件
'swoole.websocket.user' => [\app\webscoket\handler\UserHandler::class],//socket 用户调用事件
'swoole.websocket.admin' => [\app\webscoket\handler\AdminHandler::class],//socket 后台事件
'swoole.websocket.kefu' => [\app\webscoket\handler\KefuHandler::class],//socket 客服事件
'swoole.websocket.supplier' => [\app\webscoket\handler\SupplierHandler::class],//socket 供应商事件
//定时执行
'crontab' => (file_exists(root_path() . "public/install/") && !file_exists(root_path() . "public/install/install.lock")) || !env('TIMER_ENABLE', false) ? [] : [
\app\listener\system\timer\SystemTimer::class,//定时任务
],
'user.register' => [\app\listener\user\Register::class], //用户注册事件
'user.cancelUser' => [\app\listener\user\CancelUser::class], //用户注销事件
'user.login' => [\app\listener\user\Login::class], //用户登录事件
'user.vipPay' => [\app\listener\user\VipUser::class], //用户购买VIP支付成功
'user.recharge' => [\app\listener\user\Recharge::class], //用户充值支付成功
'user.rechargeRefund' => [\app\listener\user\RechargeRefund::class], //用户充值退款成功
'user.extract' => [\app\listener\user\Extract::class], //用户申请提现
'user.work' => [\app\listener\user\UserBindWorkMember::class],
'user.create' => [\app\listener\user\CreateSuccess::class],//用户创建事件
'user.update' => [\app\listener\user\UpdateSuccess::class],//用户更新事件
'user.status' => [],//修改用户状态事件
'user.client' => [\app\listener\user\UserBindClient::class],//用户绑定企业微信客户
'user.member.update' => [\app\listener\user\MemberUpdateSuccess::class],//会员更新事件
'user.address.update' => [\app\listener\user\AddressUpdateSuccess::class],//修改用户状态事件
'user.activate.level' => [\app\listener\user\ActivateLevel::class],//用户激活会员卡
'user.auto.label' => [\app\listener\user\AutoLabelListener::class],//用户自动打标签事件
'pay.notify' => [\app\listener\pay\PayNotifyListener::class],//支付异步回调事件
'pay.mchNotify' => [\app\listener\pay\PayMchNotifyListener::class],//商家转账异步回调事件
'pay.scan.notify' => [\app\listener\pay\ScannedNotifyListener::class],//支付扫码异步回调
'pay.refunded.notify' => [],//退款结果异步回调
'cart.add' => [\app\listener\order\AddCart::class], //加入购物车事件
'order.create' => [\app\listener\order\Create::class], //订单创建事件
'order.price' => [\app\listener\order\PriceRevision::class], //订单改价格事件
'order.applyRefund' => [\app\listener\order\ApplyRefund::class], //订单退款申请事件
'order.refuseRefund' => [\app\listener\order\RefuseRefund::class], //订单拒绝退款申请事件
'order.refund' => [\app\listener\order\Refund::class], //订单退款事件
'order.pay' => [\app\listener\order\Pay::class], //订单支付事件
'order.delivery' => [\app\listener\order\Delivery::class], //订单发货事件
'order.take' => [\app\listener\order\Take::class], //订单收货事件
'order.comment' => [\app\listener\order\Comment::class], //订单评价事件
'order.cancel' => [\app\listener\order\Cancel::class], //订单取消删除事件
'order.writeoff' => [\app\listener\order\Writeoff::class], //订单核销事件
'order.routine.shipping' => [\app\listener\order\OrderShipping::class], //小程序发货信息事件
'notice.notice' => [\app\listener\notice\Notice::class], //通知->消息事件
'sms.sendAfter' => [\app\listener\notice\sms\SendAfterSuccess::class],//短信发送后事件
'admin.login' => [\app\listener\system\admin\LoginSuccess::class],//后台登录事件
'admin.logout' => [\app\listener\system\admin\LogoutSuccess::class],//后台退出事件
'diy.update' => [\app\listener\system\DiyUpdateSuccess::class],//DIY更新事件
'config.create' => [\app\listener\system\config\CreateSuccess::class],//创建配置事件
'config.delete' => [\app\listener\system\config\DeleteSuccess::class],//删除配置事件
'config.status' => [\app\listener\system\config\StatusSuccess::class],//删除配置事件
'product.create' => [\app\listener\product\CreateSuccess::class],//商品创建事件
'product.delete' => [\app\listener\product\DeleteSuccess::class],//商品删除事件
'product.status' => [\app\listener\product\StatusSuccess::class],//商品状态事件
'product.reply' => [\app\listener\product\Reply::class],//商品评价事件
'product.collect' => [\app\listener\product\Collect::class],//商品收藏事件
'product.reply.update' => [\app\listener\product\ReplyUpdateSuccess::class],//个更新评论事件
'product.shipping.update' => [\app\listener\product\ShippingUpdateSuccess::class],//修改运费模板事件
'store.create' => [\app\listener\store\StoreSuccess::class],//创建门店事件
'store.delete' => [\app\listener\store\DeleteSuccess::class],//删除门店事件
'store.status' => [\app\listener\store\StatusSuccess::class],//门店状态事件
'supplier.verify' => [\app\listener\supplier\ApplyVerify::class],//供应商入驻审核事件
'supplier.create' => [\app\listener\supplier\SupplierSuccess::class],//创建供应商事件
'supplier.delete' => [\app\listener\supplier\DeleteSuccess::class],//删除供应商事件
'supplier.status' => [\app\listener\supplier\StatusSuccess::class],//供应商状态事件
'work.welcome' => [\app\listener\work\WelcomeSendListener::class],//企业微信欢迎语事件
'work.label' => [\app\listener\work\ClientLabelListener::class],//企业微信客户标签
'work.user' => [\app\listener\work\ClientBindUserListener::class],//企业微信客户绑定商城用户
'work.message' => [\app\listener\work\MessageSendListener::class],//企业微信应用消息发送
'out.outPush' => [\app\listener\out\OutPush::class], //对外推送事件
'community.operate' => [\app\listener\community\CommunityOperate::class], //帖子操作事件
'community.delete' => [\app\listener\community\CommunityDelete::class], //帖子删除
'community.like' => [\app\listener\community\CommunityLike::class], //帖子评论点赞,取消点赞
'community.comment.operate' => [\app\listener\community\CommunityCommentOperate::class], //帖子评论操作事件
'community.comment.delete' => [\app\listener\community\CommunityCommentDelete::class], //帖子评论删除
'product.stock.create' => [\app\listener\product\Stock::class], //出入库添加事件
'product.stock.record' => [\app\listener\product\StockRecords::class], //库存变动出入库记录事件
],
'subscribe' => [
],
];