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
120 lines
3.3 KiB
PHP
Executable File
120 lines
3.3 KiB
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/**
|
|
* Proxy PHP file generated by Composer
|
|
*
|
|
* This file includes the referenced bin path (../nesbot/carbon/bin/carbon)
|
|
* using a stream wrapper to prevent the shebang from being output on PHP<8
|
|
*
|
|
* @generated
|
|
*/
|
|
|
|
namespace Composer;
|
|
|
|
$GLOBALS['_composer_bin_dir'] = __DIR__;
|
|
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';
|
|
|
|
if (PHP_VERSION_ID < 80000) {
|
|
if (!class_exists('Composer\BinProxyWrapper')) {
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class BinProxyWrapper
|
|
{
|
|
private $handle;
|
|
private $position;
|
|
private $realpath;
|
|
|
|
public function stream_open($path, $mode, $options, &$opened_path)
|
|
{
|
|
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
|
|
$opened_path = substr($path, 17);
|
|
$this->realpath = realpath($opened_path) ?: $opened_path;
|
|
$opened_path = $this->realpath;
|
|
$this->handle = fopen($this->realpath, $mode);
|
|
$this->position = 0;
|
|
|
|
return (bool) $this->handle;
|
|
}
|
|
|
|
public function stream_read($count)
|
|
{
|
|
$data = fread($this->handle, $count);
|
|
|
|
if ($this->position === 0) {
|
|
$data = preg_replace('{^#!.*\r?\n}', '', $data);
|
|
}
|
|
|
|
$this->position += strlen($data);
|
|
|
|
return $data;
|
|
}
|
|
|
|
public function stream_cast($castAs)
|
|
{
|
|
return $this->handle;
|
|
}
|
|
|
|
public function stream_close()
|
|
{
|
|
fclose($this->handle);
|
|
}
|
|
|
|
public function stream_lock($operation)
|
|
{
|
|
return $operation ? flock($this->handle, $operation) : true;
|
|
}
|
|
|
|
public function stream_seek($offset, $whence)
|
|
{
|
|
if (0 === fseek($this->handle, $offset, $whence)) {
|
|
$this->position = ftell($this->handle);
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public function stream_tell()
|
|
{
|
|
return $this->position;
|
|
}
|
|
|
|
public function stream_eof()
|
|
{
|
|
return feof($this->handle);
|
|
}
|
|
|
|
public function stream_stat()
|
|
{
|
|
return array();
|
|
}
|
|
|
|
public function stream_set_option($option, $arg1, $arg2)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function url_stat($path, $flags)
|
|
{
|
|
$path = substr($path, 17);
|
|
if (file_exists($path)) {
|
|
return stat($path);
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (
|
|
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|
|
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
|
|
) {
|
|
return include("phpvfscomposer://" . __DIR__ . '/..'.'/nesbot/carbon/bin/carbon');
|
|
}
|
|
}
|
|
|
|
return include __DIR__ . '/..'.'/nesbot/carbon/bin/carbon';
|