药房 - 自营商城(V3.0) API
  1. 秒杀活动
药房 - 自营商城(V3.0) API
  • 商城侧 - 后台
    • 用户
      • 用户等级
        • 导入商品数据
        • 添加/修改会员等级
        • 获取等级会员信息
      • 用户登录
      • 获取用户信息
      • 编辑用户信息
      • 获取会员等级记录
    • 商品
      • 商品导入
        • 佣金导入
        • 会员价导入
      • 商品审核
        • 获取商品审核列表
        • 导入商品审核表
        • 导出商品审核
        • 重新审核
        • 更新
      • 新建或修改商品
      • 获取商品详细信息
      • 获取商品列表
      • 导出商品规格信息
      • 弹窗-商品列表
    • 设置
      • 同城配送
        • 获取配送记录
      • 获取全局设置
      • 订单设置
      • 获取订单设置 
    • 营销
      • 秒杀活动
        • 保存秒杀活动
          POST
        • 获取秒杀活动列表
          GET
        • 获取秒杀详情
          GET
        • 获取秒杀商品列表
          GET
      • 抽奖活动
        • 导出中奖记录
      • 拼团
        • 保存拼团活动
        • 获取拼团详情
        • 拼团活动参与人列表
        • 拼团活动订单
      • 砍价
        • 保存砍价
        • 砍价活动详情
        • 砍价商品列表
        • 砍价统计活动参与人
        • 砍价活动订单
        • 砍价列表
    • 订单
      • 售后订单
        • 导出售后订单数据
        • 获取售后订单列表
        • 售后订单筛选类型/状态参数
        • 售后订单详情
      • 订单发送货
      • 订单核销
      • 重新推送
      • 订单售后退款
      • 获取订单详情
      • 补齐订单佣金流水
      • 导出订单
    • 分销
      • 一级分销员列表
      • 分销头部统计
    • 回调
      • UU、达达回调
    • 供应商
      • 订单
        • 售后订单
          • 售后订单筛选类型/状态参数
          • 售后订单列表
          • 售后订单详情
        • 获取订单详情
    • 门店
      • 订单
        • 获取订单详情
        • 订单列表
      • 财务
        • 门店流水
        • 门店流水导出
        • 门店流水检索条件
      • 不同产品的适配门店列表
      • 获取店铺列表
      • 获取门店分类
      • 门店列表
    • 系统
      • 获取Erp日志
      • 获取小程序设置
    • 财务
      • 提现列表导出
  • 商城侧 - 门店
    • 用户
      • 获取用户列表
      • 检索用户列表
    • 订单
      • 售后订单
        • 导出售后订单数据
        • 订单售后
        • 售后订单筛选类型/状态参数
        • 售后订单列表
      • 获取订单详情
      • 付费会员订单
      • 导出订单
      • 获取配送员列表
      • 批量自动发货
      • 批量手动发货
    • 财务
      • 门店流水检索条件
      • 门店流水
    • 获取店铺配置
      GET
    • 获取店铺配置
      GET
  • 商城侧 - 收银台
    • 获取活动商品统计
      GET
    • 获取活动商品列表
      GET
    • 获取用户列表
      GET
  • 商城侧 - 供应商
    • 订单
      • 售后订单
        • 售后订单筛选类型/状态参数
        • 获取售后订单列表
        • 同意退款
        • 同意退货
      • 获取订单详情
    • 获取配置
  • 商城侧 - 客服
    • 订单
      • 订单列表
      • 同意退款
      • 订单详情
  1. 秒杀活动

保存秒杀活动

开发中
POST
/adminapi/marketing/seckill/{id}

请求参数

Authorization
在 header 添加参数
Authori-Zation
示例:
Authori-Zation: ********************
Path 参数
id
string 
必需
活动ID,新增时为0
示例值:
16
Body 参数application/json
id
integer 
必需
type
enum<integer> 
商品所属
必需
枚举值:
012
name
string 
活动名称
必需
image
string 
活动氛围框
必需
start_day
integer 
开始日期
必需
end_day
integer 
结束日期
必需
start_time
integer 
开始时间
必需
end_time
integer 
结束时间
必需
time_id
array[integer]
必需
once_num
integer 
单次购买个数
必需
num
integer 
最多秒杀几个
必需
discount
string 
必需
status
enum<integer> 
是否开启活动
必需
枚举值:
01
is_recommend
integer 
必需
link_id
integer 
必需
applicable_type
enum<integer> 
适用门店类型
必需
枚举值:
012
applicable_store_id
array[integer]
必需
is_del
integer 
必需
add_time
string 
必需
section_data
array[string]
必需
productList
array[object (后台商品数据模型) {98}] 
产品列表
必需
id
integer 
必需
pid
integer 
必需
type
enum<integer> 
商品所属
必需
枚举值:
012
product_type
enum<integer> 
商品类型
必需
枚举值:
0123499
relation_id
integer 
关联的店铺或者供应商ID
必需
mer_id
integer 
商户ID
必需
image
string 
商品图片
必需
recommend_image
string 
推荐图
必需
slider_image
array[string]
轮播图
必需
store_name
string 
店铺名称
必需
store_info
string 
商品简介
必需
keyword
string 
关键字
必需
bar_code
string 
商品条码(一维码)
必需
cate_id
array[string]
分类ID
必需
price
integer 
价格
必需
vip_price
integer 
VIP价格
必需
ot_price
integer 
必需
postage
integer 
必需
delivery_type
array[string]
必需
freight
integer 
必需
unit_name
string 
必需
sort
integer 
必需
sales
integer 
必需
stock
integer 
必需
is_show
integer 
必需
is_hot
integer 
必需
is_benefit
integer 
必需
is_best
integer 
必需
is_new
integer 
必需
add_time
integer 
必需
is_postage
integer 
必需
is_verify
integer 
必需
is_del
integer 
必需
mer_use
integer 
必需
give_integral
integer 
必需
cost
integer 
必需
is_seckill
integer 
必需
is_bargain
integer 
必需
is_good
integer 
必需
is_sub
array[string]
是否开启分佣
必需
与阶梯分佣不可同时打开
is_vip
integer 
必需
ficti
integer 
必需
browse
integer 
必需
code_path
string 
必需
soure_link
string 
必需
video_link
string 
必需
temp_id
integer 
必需
spec_type
enum<integer> 
当前的规格
必需
枚举值:
01
activity
array[string]
必需
spu
string 
SPU
必需
label_id
array[string]
必需
command_word
string 
必需
recommend_list
array[string]
必需
brand_id
array[integer]
必需
brand_com
string 
必需
code
string 
必需
is_vip_product
integer 
必需
is_presale_product
integer 
必需
presale_start_time
integer 
必需
presale_end_time
integer 
必需
presale_day
integer 
必需
auto_on_time
string 
必需
auto_off_time
string 
必需
custom_form
array[string]
必需
system_form_id
integer 
必需
applicable_type
integer 
必需
applicable_store_id
array[string]
必需
is_support_refund
integer 
必需
store_label_id
array[string]
必需
ensure_id
array[string]
必需
specs
array[string]
必需
specs_id
integer 
必需
is_limit
boolean 
必需
limit_type
integer 
必需
limit_num
integer 
必需
refusal
string 
必需
is_police
integer 
必需
is_sold
integer 
必需
is_brokerage_ladder
enum<integer> 
阶梯分佣
必需
与营销分佣不可以同时打开
枚举值:
01
drug_attribute_item
object 
必需
standard_code
string 
必需
v_drug_ident
integer 
必需
coupons
array[string]
必需
recommend
array[string]
必需
video_open
boolean 
必需
presale_time
array[string]
必需
description
string 
必需
custom_form_info
array[string]
必需
items
array [object {3}] 
必需
attrs
array [object {23}] 
规格组合
必需
attr
object 
商品规格
必需
stores
array [object {15}] 
必需
mapping_info
object 
必需
supplier_id
integer 
必需
coupon_ids
array[string]
必需
header
array[string]
必需
is_sync_price
integer 
必需
brokerage_ladder_rule
object 
阶梯分佣规则
必需
stores
array [object {15}] 
适用的店铺列表
必需
id
integer 
ID
必需
cate_id
integer 
门店所属的类别
必需
name
string 
门店名称
必需
phone
string 
门店号码
必需
address
string 
门店地址
必需
detailed_address
string 
门店详细地址
必需
image
string 
门店图片
必需
is_show
enum<integer> 
是否展示
必需
枚举值:
01
day_time
string 
总的营业时间
必需
day_start
string 
开始营业时间
必需
day_end
string 
结束营业时间
必需
cate_name
null 
门店所属的分类名称
必需
range
integer 
必需
status_name
enum<string> 
营业状态名
必需
枚举值:
营业中休息中
prefix
string 
门店前缀
必需
seckill_ids
array [object {3}] 
必需
id
integer 
必需
status
integer 
必需
attrValue
array [object {30}] 
必需
copy
integer 
必需
示例
{
    "id": 16,
    "type": 1,
    "name": "测试秒杀商品下架",
    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230718/3f11e35dd001d29d048da916eb3a5ea8.png",
    "start_day": 1690214400,
    "end_day": 1690992000,
    "start_time": null,
    "end_time": null,
    "time_id": [
        3,
        1,
        4,
        5
    ],
    "once_num": 3,
    "num": 20,
    "discount": "",
    "status": 1,
    "is_recommend": 0,
    "link_id": 0,
    "applicable_type": 1,
    "applicable_store_id": [
        2,
        1
    ],
    "is_del": 0,
    "add_time": "2023-07-29 10:53:25",
    "section_data": [
        "2023-07-24T16:00:00.000Z",
        "2023-08-02T16:00:00.000Z"
    ],
    "productList": [
        {
            "id": 4898,
            "pid": 0,
            "type": 0,
            "product_type": 0,
            "relation_id": 0,
            "mer_id": 0,
            "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
            "recommend_image": "",
            "slider_image": [
                "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png"
            ],
            "store_name": "(平台自建)单规格转多规格",
            "store_info": "",
            "keyword": "",
            "bar_code": "",
            "cate_id": "2",
            "price": 10,
            "vip_price": 0,
            "ot_price": 5,
            "postage": 0,
            "delivery_type": [
                "1"
            ],
            "freight": 1,
            "unit_name": "件",
            "sort": 0,
            "sales": 0,
            "stock": 20,
            "is_show": 1,
            "is_hot": 0,
            "is_benefit": 0,
            "is_best": 0,
            "is_new": 0,
            "add_time": 1690256922,
            "is_postage": 0,
            "is_verify": 1,
            "is_del": 0,
            "mer_use": 0,
            "give_integral": 0,
            "cost": 10,
            "is_seckill": 0,
            "is_bargain": 0,
            "is_good": 0,
            "is_sub": 0,
            "is_vip": 0,
            "ficti": 0,
            "browse": 0,
            "code_path": "",
            "soure_link": "",
            "video_link": "",
            "temp_id": 1,
            "spec_type": 1,
            "activity": "0,1,2,3",
            "spu": "9798571020717",
            "label_id": [],
            "command_word": "",
            "recommend_list": "",
            "brand_id": 0,
            "brand_com": "",
            "code": "TEST111111",
            "is_vip_product": 0,
            "is_presale_product": 0,
            "presale_start_time": 0,
            "presale_end_time": 0,
            "presale_day": 1,
            "auto_on_time": 0,
            "auto_off_time": 0,
            "custom_form": [],
            "system_form_id": 0,
            "applicable_type": 1,
            "applicable_store_id": [],
            "is_support_refund": 1,
            "store_label_id": [],
            "ensure_id": [],
            "specs": [
                {
                    "id": "1",
                    "temp_id": "5",
                    "name": "参数1",
                    "value": "参数值1",
                    "sort": "0"
                }
            ],
            "specs_id": 5,
            "is_limit": 0,
            "limit_type": 0,
            "limit_num": 0,
            "refusal": "",
            "is_police": 0,
            "is_sold": 0,
            "is_brokerage_ladder": 0,
            "drug_attribute_item": null,
            "standard_code": "",
            "v_drug_ident": null,
            "description": "",
            "attrValue": [
                {
                    "id": 5042,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "黑色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "10.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "3bc2bd8e",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 5,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                },
                {
                    "id": 5041,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "红色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "10.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "ab765727",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 5,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                }
            ],
            "cate_name": "test/test1",
            "store_label": "",
            "status": 1,
            "parent": 1
        }
    ],
    "stores": [
        {
            "id": 2,
            "cate_id": 0,
            "name": "陈先生",
            "phone": "13200000000",
            "address": "广东省汕头市金平区石炮台街道",
            "detailed_address": "中国广东省汕头市金平区海滨路石炮台街道",
            "image": "http://test.mall.86yfw.com/uploads/system/ops_mobile_logo.png",
            "is_show": 1,
            "day_time": "08:00:00 - 20:00:00",
            "day_start": "08:00:00",
            "day_end": "20:00:00",
            "cate_name": null,
            "range": 0,
            "status_name": "营业中",
            "prefix": "store"
        },
        {
            "id": 1,
            "cate_id": 0,
            "name": "测试门店1",
            "phone": "13888888888",
            "address": "上海徐汇区城区",
            "detailed_address": "中国广东省潮州市潮安区护堤路庵埠镇",
            "image": "http://test.mall.86yfw.com/uploads/attach/2023/04/20230406/ae9552ac220fc235bb6894f7fa294a65.jpg",
            "is_show": 0,
            "day_time": "08:00:00-18:00:00",
            "day_start": "08:00:00",
            "day_end": "18:00:00",
            "cate_name": null,
            "range": 0,
            "status_name": "已停业",
            "prefix": "store"
        }
    ],
    "seckill_ids": [
        {
            "id": 4898,
            "status": 1,
            "attrValue": [
                {
                    "id": 5041,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "红色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "3.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "ab765727",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 4,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                },
                {
                    "id": 5042,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "黑色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "10.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "3bc2bd8e",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 5,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                }
            ]
        }
    ],
    "copy": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/marketing/seckill/16' \
--header 'Content-Type: application/json' \
--header 'Authori-Zation;' \
--data-raw '{
    "id": 16,
    "type": 1,
    "name": "测试秒杀商品下架",
    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230718/3f11e35dd001d29d048da916eb3a5ea8.png",
    "start_day": 1690214400,
    "end_day": 1690992000,
    "start_time": null,
    "end_time": null,
    "time_id": [
        3,
        1,
        4,
        5
    ],
    "once_num": 3,
    "num": 20,
    "discount": "",
    "status": 1,
    "is_recommend": 0,
    "link_id": 0,
    "applicable_type": 1,
    "applicable_store_id": [
        2,
        1
    ],
    "is_del": 0,
    "add_time": "2023-07-29 10:53:25",
    "section_data": [
        "2023-07-24T16:00:00.000Z",
        "2023-08-02T16:00:00.000Z"
    ],
    "productList": [
        {
            "id": 4898,
            "pid": 0,
            "type": 0,
            "product_type": 0,
            "relation_id": 0,
            "mer_id": 0,
            "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
            "recommend_image": "",
            "slider_image": [
                "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png"
            ],
            "store_name": "(平台自建)单规格转多规格",
            "store_info": "",
            "keyword": "",
            "bar_code": "",
            "cate_id": "2",
            "price": 10,
            "vip_price": 0,
            "ot_price": 5,
            "postage": 0,
            "delivery_type": [
                "1"
            ],
            "freight": 1,
            "unit_name": "件",
            "sort": 0,
            "sales": 0,
            "stock": 20,
            "is_show": 1,
            "is_hot": 0,
            "is_benefit": 0,
            "is_best": 0,
            "is_new": 0,
            "add_time": 1690256922,
            "is_postage": 0,
            "is_verify": 1,
            "is_del": 0,
            "mer_use": 0,
            "give_integral": 0,
            "cost": 10,
            "is_seckill": 0,
            "is_bargain": 0,
            "is_good": 0,
            "is_sub": 0,
            "is_vip": 0,
            "ficti": 0,
            "browse": 0,
            "code_path": "",
            "soure_link": "",
            "video_link": "",
            "temp_id": 1,
            "spec_type": 1,
            "activity": "0,1,2,3",
            "spu": "9798571020717",
            "label_id": [],
            "command_word": "",
            "recommend_list": "",
            "brand_id": 0,
            "brand_com": "",
            "code": "TEST111111",
            "is_vip_product": 0,
            "is_presale_product": 0,
            "presale_start_time": 0,
            "presale_end_time": 0,
            "presale_day": 1,
            "auto_on_time": 0,
            "auto_off_time": 0,
            "custom_form": [],
            "system_form_id": 0,
            "applicable_type": 1,
            "applicable_store_id": [],
            "is_support_refund": 1,
            "store_label_id": [],
            "ensure_id": [],
            "specs": [
                {
                    "id": "1",
                    "temp_id": "5",
                    "name": "参数1",
                    "value": "参数值1",
                    "sort": "0"
                }
            ],
            "specs_id": 5,
            "is_limit": 0,
            "limit_type": 0,
            "limit_num": 0,
            "refusal": "",
            "is_police": 0,
            "is_sold": 0,
            "is_brokerage_ladder": 0,
            "drug_attribute_item": null,
            "standard_code": "",
            "v_drug_ident": null,
            "description": "",
            "attrValue": [
                {
                    "id": 5042,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "黑色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "10.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "3bc2bd8e",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 5,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                },
                {
                    "id": 5041,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "红色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "10.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "ab765727",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 5,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                }
            ],
            "cate_name": "test/test1",
            "store_label": "",
            "status": 1,
            "parent": 1
        }
    ],
    "stores": [
        {
            "id": 2,
            "cate_id": 0,
            "name": "陈先生",
            "phone": "13200000000",
            "address": "广东省汕头市金平区石炮台街道",
            "detailed_address": "中国广东省汕头市金平区海滨路石炮台街道",
            "image": "http://test.mall.86yfw.com/uploads/system/ops_mobile_logo.png",
            "is_show": 1,
            "day_time": "08:00:00 - 20:00:00",
            "day_start": "08:00:00",
            "day_end": "20:00:00",
            "cate_name": null,
            "range": 0,
            "status_name": "营业中",
            "prefix": "store"
        },
        {
            "id": 1,
            "cate_id": 0,
            "name": "测试门店1",
            "phone": "13888888888",
            "address": "上海徐汇区城区",
            "detailed_address": "中国广东省潮州市潮安区护堤路庵埠镇",
            "image": "http://test.mall.86yfw.com/uploads/attach/2023/04/20230406/ae9552ac220fc235bb6894f7fa294a65.jpg",
            "is_show": 0,
            "day_time": "08:00:00-18:00:00",
            "day_start": "08:00:00",
            "day_end": "18:00:00",
            "cate_name": null,
            "range": 0,
            "status_name": "已停业",
            "prefix": "store"
        }
    ],
    "seckill_ids": [
        {
            "id": 4898,
            "status": 1,
            "attrValue": [
                {
                    "id": 5041,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "红色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "3.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "ab765727",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 4,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                },
                {
                    "id": 5042,
                    "type": 0,
                    "product_id": 4898,
                    "product_type": 0,
                    "suk": "黑色",
                    "stock": 10,
                    "sum_stock": 10,
                    "sales": 0,
                    "price": "10.00",
                    "integral": 0,
                    "image": "http://test.mall.86yfw.com/uploads/attach/2023/07/20230720/1c39be98032fb979a5f6c292cd0dfaf4.png",
                    "unique": "3bc2bd8e",
                    "cost": "10.00",
                    "bar_code": "",
                    "ot_price": "5.00",
                    "vip_price": "0.00",
                    "weight": "0.00",
                    "volume": "0.00",
                    "brokerage": "0.00",
                    "brokerage_two": "0.00",
                    "quota": 5,
                    "quota_show": 5,
                    "code": "TEST111111",
                    "disk_info": "",
                    "write_times": 1,
                    "write_valid": 1,
                    "write_days": 0,
                    "write_start": 0,
                    "write_end": 0,
                    "brokerage_ladder_rule": {
                        "first_buy": [
                            {
                                "one_rebate": 0,
                                "two_rebate": 0,
                                "number": 1
                            }
                        ],
                        "repeat_buy": {
                            "one_rebate": 0,
                            "two_rebate": 0
                        }
                    }
                }
            ]
        }
    ],
    "copy": 0
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "status": 400,
    "msg": "限量不能超过商品库存",
    "data": {
        "msg": "限量不能超过商品库存",
        "file": "/var/www/app/services/activity/seckill/StoreSeckillServices.php",
        "line": 232,
        "trace": [
            {
                "file": "/var/www/app/services/activity/StoreActivityServices.php",
                "line": 297,
                "function": "saveData",
                "class": "app\\services\\activity\\seckill\\StoreSeckillServices",
                "type": "->",
                "args": [
                    0,
                    {
                        "activity_id": 3,
                        "product_id": 4847,
                        "title": "避孕套(敏感装) 10只+3只",
                        "info": "",
                        "unit_name": "件",
                        "section_time": [
                            "2023-07-11T16:00:00.000Z",
                            "2023-07-14T16:00:00.000Z"
                        ],
                        "images": "[\"http:\\/\\/test.mall.86yfw.com\\/uploads\\/attach\\/2023\\/06\\/20230615\\/589028dc47e135e5b0a37f10c70f7995.jpg\"]",
                        "description": "",
                        "status": "1",
                        "time_id": [
                            "1"
                        ],
                        "num": "1",
                        "once_num": "1",
                        "delivery_type": [
                            "2",
                            "3",
                            "1"
                        ],
                        "temp_id": 0,
                        "freight": 1,
                        "postage": 0,
                        "custom_form": "[]",
                        "system_form_id": 0,
                        "product_type": 99,
                        "applicable_type": "1",
                        "applicable_store_id": [],
                        "items": [
                            {
                                "value": "规格",
                                "detailValue": "",
                                "attrHidden": true,
                                "detail": [
                                    "默认"
                                ]
                            }
                        ],
                        "attrs": [
                            {
                                "value": "默认",
                                "value1": "默认",
                                "detail": {
                                    "规格": "默认"
                                },
                                "pic": "http://test.mall.86yfw.com/uploads/attach/2023/06/20230615/589028dc47e135e5b0a37f10c70f7995.jpg",
                                "price": "10.00",
                                "p_price": 10,
                                "cost": "0.00",
                                "ot_price": "0.00",
                                "stock": 7,
                                "quota": "10000",
                                "bar_code": "",
                                "code": "TEST_1001894",
                                "product_type": 99,
                                "weight": 0,
                                "volume": 0,
                                "brokerage": 0,
                                "brokerage_two": 0,
                                "quota_show": "10000"
                            }
                        ],
                        "type": 0,
                        "relation_id": 0,
                        "store_label_id": "",
                        "ensure_id": "",
                        "specs": "[]",
                        "start_time": 1689091200,
                        "stop_time": 1689350400,
                        "image": "http://test.mall.86yfw.com/uploads/attach/2023/06/20230615/589028dc47e135e5b0a37f10c70f7995.jpg",
                        "price": "10.00",
                        "ot_price": "0.00",
                        "quota_show": 10000,
                        "quota": 10000
                    }
                ]
            },
            {
                "file": "/var/www/app/services/activity/StoreActivityServices.php",
                "line": 215,
                "function": "saveActivitySeckill",
                "class": "app\\services\\activity\\StoreActivityServices",
                "type": "->",
                "args": [
                    3,
                    {
                        "4847": {
                            "id": "4847",
                            "status": "1",
                            "attrValue": [
                                {
                                    "id": 4856,
                                    "type": 0,
                                    "product_id": 4847,
                                    "product_type": 99,
                                    "suk": "默认",
                                    "stock": 7,
                                    "sum
修改于 2023-08-02 00:53:24
上一页
获取订单设置 
下一页
获取秒杀活动列表
Built with