文档
测试

获取商品信息

POST
GetProductInfoForID

接口描述

获取商品信息:GetProductInfoForID

请求参数

参数名
类型
描述
必填
dataJson
object
数据参数 添加
必填
id
number
商品ID
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
id
int
商品ID 示例:10001
必填
name
string
商品名称 示例:测试商品1
必填
subtitle
string
商品副标题 示例:测试专用
必填
price
float
商品价格 示例:0.1
必填
market_price
int
市场价格 示例:100
必填
pic_name
string
商品图标 示例:https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_00000.jpg
必填
album
array
广告轮播图 数据列表
必填
url
string
链接 示例:https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_01001.jpg
必填
poster
string
封面 示例: 注只要视频才有封面
必填
type
int
类型 【1图片 2视频】 示例:1
必填
pic_info
array
商品详情图片 数据列表
必填
url
string
链接 示例:https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_02001.jpg
必填
poster
string
封面 示例: 注只要视频才有封面
必填
type
int
类型 【1图片 2视频】 示例:1
必填
sales_quantity
int
销量
必填
share_card
string
商品分享卡图
必填
posters
string
商品海报图
必填
class_id
string
分类ID
必填
class_name
string
分类名称
必填
sales_method
int
销售模式 【1预约门诊采样、2自检不出报告、3自检并实验室出报告】
必填
inspection_items
array
项目列表 对像数组
必填
name
string
项目名称
必填
description
string
项目描述
必填
is_marking
bool
是否标星
必填
pe_date_list
array
体验日期(星期几)例表 字符串数组
必填
not_pe_date_list
array
不可体验日期(日期)例表 字符串数组
必填
pe_time_range
string
体验时间范围
必填
pe_centre_name
string
体验中心名称
必填
pe_centre_address
string
体验中心地址
必填
pe_centre_lon
number
体验中心坐标 经度
必填
pe_centre_lat
number
体验中心坐标 纬度
必填
is_inspection_items
bool
是否显示检查项数量
必填
is_key_inspection
bool
是否显示重点筛查
必填
main_background_id
int
主图背景ID
必填
main_background_url
string
主图背景连接
必填
main_character_id
int
主图人物ID
必填
main_character_url
string
主图人物连接
必填
available_payment_methods
string
可用支付方式 例 wx,balance 。 注每个方式用豆号相隔
必填
amount_ratio
int
余额支付本金比率(%)
必填
gift_amount_ratio
int
余额支付赠送金比率(%)
必填
product_stamp
string
商品标识
必填
about_info
string
关于体检
必填
ret
int
示例:0
必填
err_code
int
示例:0
必填
msg
string
示例:ok
必填

说明 / 示例

## 接口地址 https://xxxx.com/WebServiceForDoctor.asmx ## 成功返回示例 新 ```language { "data": { "id": 10001, "name": "测试商品1", "class_id": 1, "class_name": "分类名称", "subtitle": "测试专用", "price": 0.1, "market_price": 100.0, "sales_quantity": 10, "sales_method": 1, "pic_name": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_00000.jpg", "share_card": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_00000.jpg", "posters": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_00000.jpg", "album": [{ "url": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_01001.jpg", "poster": "", "type": 1 }, { "url": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_01002.jpg", "poster": "", "type": 1 }], "pic_info": [{ "url": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_02001.jpg", "poster": "", "type": 1 }, { "url": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_02002.jpg", "poster": "", "type": 1 }, { "url": "https://oss.qssmart.cn/huixin/Upload/member_photos/100001/100001_20240801000001_02003.jpg", "poster": "", "type": 1 }], "inspection_items": [{ "name": "尿常规", "description": "", "is_marking": true }, { "name": "血常规", "description": "", "is_marking": true }, { "name": "眼检查", "description": "", "is_marking": true }, { "name": "宫检", "description": "", "is_marking": true }, { "name": "血液蛋白检查", "description": "", "is_marking": false }, { "name": "CT项目", "description": "", "is_marking": false }], "pe_date_list": ["周一", "周二", "周三", "周四", "周五"], "not_pe_date_list": ["2025-07-11"], "pe_time_range": "07:30-11:30", "pe_centre_name": "珠海慧心健康管理有限公司", "pe_centre_address": "广东省珠海市香洲区唐家湾镇新沙三路188号11栋", "pe_centre_lon": 113.538943, "pe_centre_lat": 22.40292, "is_inspection_items": true, "is_key_inspection": true, "main_background_id": 1, "main_background_url": "http://localhost:7900//Upload/PEItemSrc/Background/1.jpg", "main_character_id": 1, "main_character_url": "http://localhost:7900//Upload/PEItemSrc/Character/1.png", "available_payment_methods": "wx,balance", "amount_ratio": 50, "gift_amount_ratio": 50, "product_stamp":"预约", "about_info":"" }, "ret": 0, "err_code": 0, "msg": "ok" } ``` >i 注:ret = 0 为成功 ## 失败返回示例 ```language { "ret": 4, "msg": "参数不能为空", "err_code": 10008 } ``` >d 注:ret > 0 为失败 ## 错误编号(errCode):