- 商城管理
- 用户注册
- 用户信息
- 用户开户
- 用户等级
- 用户充值
- 客服中心
- 用户提现
- 用户商品
- 用户订单
- 店铺信息
- 工作日志
- 脚本任务
- 上传图片
商品详情
开发中
开发环境
开发环境
GET
/api/Index/product_detail
请求参数
Query 参数
id
integer
商品ID
示例值:
1
spec_value
string
规格值
示例值:
规格值
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://172.24.66.61/aimall/public/api/Index/product_detail?id=1&spec_value=规格值'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
id
integer
商品ID
name
string
商品名称
mall
string
所属商城
cate
string
所属分类
price
string
商品价格:$
profit_price
string
商品利润:$
original_price
string
商品原价:$
cash_price
string
必需
img
string
商品图片
album
array[string]
商品相册
spec
string
商品规格
content
string
商品描述
is_sale
integer
必需
is_hot
integer
必需
stock
integer
库存
warning
integer
必需
init_volume
integer
初始销量
weight
integer
重量g
volume
integer
销量
freight_id
integer
运费ID
sort
integer
排序
create_time
integer
创建时间
is_delete
integer
必需
content_imgs
array[string]
必需
spec2
string
必需
spec_info
array[string]
必需
customer_service
string
必需
share_url
string
必需
示例
{
"code": 200,
"msg": "商品详情",
"data": {
"id": 1,
"name": "tiktok商品",
"mall": "3",
"cate": "1,2",
"price": "5000.00",
"profit_price": "500.00",
"original_price": "100000.00",
"cash_price": "0.00",
"img": "http://172.24.66.61/aimall/public//uploads/20250211/bfc0faeda8ed384e5bed2f4a1e0b2127.png",
"album": [
"http://172.24.66.61/aimall/public//uploads/20250211/bfc0faeda8ed384e5bed2f4a1e0b2127.png"
],
"spec": "[]",
"content": "<p>tiktok商品</p>",
"is_sale": 1,
"is_hot": 0,
"stock": 99999,
"warning": 0,
"init_volume": 0,
"weight": 0,
"volume": 0,
"freight_id": 0,
"sort": 0,
"create_time": 1739261313,
"is_delete": 0,
"content_imgs": [],
"spec2": "[]",
"spec_info": [],
"customer_service": "1234567891",
"share_url": "http://172.24.66.61/aimall/public/index/index/product_detail/id/1/spec_value/%E8%A7%84%E6%A0%BC%E5%80%BC/admin_id/10"
}
}
修改于 2025-03-27 07:30:03