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
110 lines
4.8 KiB
PHP
110 lines
4.8 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Contracts\HttpClient;
|
|
|
|
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
|
|
use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
|
|
use Symfony\Contracts\HttpClient\Exception\ExceptionInterface;
|
|
use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
|
|
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
|
|
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
|
|
|
/**
|
|
* A (lazily retrieved) HTTP response.
|
|
*
|
|
* @author Nicolas Grekas <p@tchwork.com>
|
|
*/
|
|
interface ResponseInterface
|
|
{
|
|
/**
|
|
* Gets the HTTP status code of the response.
|
|
*
|
|
* @throws TransportExceptionInterface when a network error occurs
|
|
*/
|
|
public function getStatusCode(): int;
|
|
|
|
/**
|
|
* Gets the HTTP headers of the response.
|
|
*
|
|
* @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes
|
|
*
|
|
* @return string[][] The headers of the response keyed by header names in lowercase
|
|
*
|
|
* @throws TransportExceptionInterface When a network error occurs
|
|
* @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached
|
|
* @throws ClientExceptionInterface On a 4xx when $throw is true
|
|
* @throws ServerExceptionInterface On a 5xx when $throw is true
|
|
*/
|
|
public function getHeaders(bool $throw = true): array;
|
|
|
|
/**
|
|
* Gets the response body as a string.
|
|
*
|
|
* @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes
|
|
*
|
|
* @throws TransportExceptionInterface When a network error occurs
|
|
* @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached
|
|
* @throws ClientExceptionInterface On a 4xx when $throw is true
|
|
* @throws ServerExceptionInterface On a 5xx when $throw is true
|
|
*/
|
|
public function getContent(bool $throw = true): string;
|
|
|
|
/**
|
|
* Gets the response body decoded as array, typically from a JSON payload.
|
|
*
|
|
* @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes
|
|
*
|
|
* @throws DecodingExceptionInterface When the body cannot be decoded to an array
|
|
* @throws TransportExceptionInterface When a network error occurs
|
|
* @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached
|
|
* @throws ClientExceptionInterface On a 4xx when $throw is true
|
|
* @throws ServerExceptionInterface On a 5xx when $throw is true
|
|
*/
|
|
public function toArray(bool $throw = true): array;
|
|
|
|
/**
|
|
* Closes the response stream and all related buffers.
|
|
*
|
|
* No further chunk will be yielded after this method has been called.
|
|
*/
|
|
public function cancel(): void;
|
|
|
|
/**
|
|
* Returns info coming from the transport layer.
|
|
*
|
|
* This method SHOULD NOT throw any ExceptionInterface and SHOULD be non-blocking.
|
|
* The returned info is "live": it can be empty and can change from one call to
|
|
* another, as the request/response progresses.
|
|
*
|
|
* The following info MUST be returned:
|
|
* - canceled (bool) - true if the response was canceled using ResponseInterface::cancel(), false otherwise
|
|
* - error (string|null) - the error message when the transfer was aborted, null otherwise
|
|
* - http_code (int) - the last response code or 0 when it is not known yet
|
|
* - http_method (string) - the HTTP verb of the last request
|
|
* - redirect_count (int) - the number of redirects followed while executing the request
|
|
* - redirect_url (string|null) - the resolved location of redirect responses, null otherwise
|
|
* - response_headers (array) - an array modelled after the special $http_response_header variable
|
|
* - start_time (float) - the time when the request was sent or 0.0 when it's pending
|
|
* - url (string) - the last effective URL of the request
|
|
* - user_data (mixed) - the value of the "user_data" request option, null if not set
|
|
*
|
|
* When the "capture_peer_cert_chain" option is true, the "peer_certificate_chain"
|
|
* attribute SHOULD list the peer certificates as an array of OpenSSL X.509 resources.
|
|
*
|
|
* Other info SHOULD be named after curl_getinfo()'s associative return value.
|
|
*
|
|
* @return mixed An array of all available info, or one of them when $type is
|
|
* provided, or null when an unsupported type is requested
|
|
*/
|
|
public function getInfo(string $type = null): mixed;
|
|
}
|