商品评论配置-获取

Product Review Get Config API 文档

接口信息

  • 接口地址: {your-site-url}/api/skill/product-review/get
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: GET
  • 说明: 此接口用于获取商品评论模块的相关配置

认证

请求头中需要携带 skill-access-token

Header
skill-access-token {your-skill-access-token} (请替换为你自己的 token)

请求参数

无需传参。


请求示例

cURL

curl --location --request GET '{your-site-url}/api/skill/product-review/get' \
--header 'skill-access-token: {your-skill-access-token}' \
--data-raw ''

返回结果

code200 表示调用成功;code 不为 200 表示调用失败。

成功响应

{
    "code": 200,
    "data": {
        "status": 1,
        "auto_publish": 1,
        "more_than_x_auto_publish": 4,
        "review_condition": 2,
        "front_note": "Comment description",
        "front_note_url": "https://www.fecify.com",
        "show_as_percent": 1,
        "less_than_x_show_percent": 100,
        "front_num_per_page": 10,
        "product_show_type": 1,
        "collection_show_type": 1,
        "verified_purchase": 1
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code Number 状态码,200 表示成功
message String 执行结果的文字描述
data Object 配置数据

data 子字段

字段 类型 说明
status int 评论功能开关。1 = 开启,2 = 关闭
auto_publish int 自动发布开关。1 = 开启,2 = 关闭
more_than_x_auto_publish int 自动发布的星级门槛。如 4 表示自动发布 4 星及以上评论
review_condition int 评论门槛。1 = 成功下单后可评论,2 = 无门槛
verified_purchase int 强制显示 Verified Purchase 标志。1 = 开启,2 = 按默认逻辑
front_note string 评论区域补充说明或免责声明文案
front_note_url string 说明文案的跳转链接
show_as_percent int 评论数百分比展示开关。1 = 开启,2 = 关闭
less_than_x_show_percent int 评论数低于此值时启用百分比展示
front_num_per_page int 商品评论列表每页显示个数
product_show_type int 商品详情页评论星标。1 = 显示,2 = 不展示
collection_show_type int 首页/专辑列表页评论星标。1 = 显示,2 = 不展示

注意事项

  1. GET 请求,无需传参
  2. 商品评论配置-保存 配套使用,get 获取配置,set 保存配置
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-05-25 22:06:32

results matching ""

    No results matching ""