Authori-Zation: ********************
{
"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
}
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
}'
{ "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