文档
测试

设置价格

POST
http://{{url}}/api/marke/set_price/set_price?ids=1

请求参数

参数名
类型
描述
必填
ids
int
示例:1
必填
plan_goods_id
int
示例:2
必填
price_param
string
示例:[ 'member' => 10, 'member0' => 8, 'member1' => 6, 'member2' => 5, 'member3' => 4, 'member4' => 3, ]
必填
share_param
string
示例: [ 'share1' => 1, 'share2' => 0.6, 'share3' => 0.3, 'share4' => 0.2, ]
必填
cost_param
string
示例:[ 'cost_price' => 15, 'cost_type' => '销售成本', 'weight' => 1.5, 'freight' => 3, 'freight1' => 5, 'freight2' => 4, 'express_type' => '圆通', 'ware_price' => 1, 'pack_price' => 0.2, 'sorting_price' => 0.1, ]
必填
complex_param
string
示例:[ 'limit_num' =>0, 'total_price' => 18, 'profit' => 5, 'profit_rate' => 0.3, ]
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:操作成功!
必填
time
string
示例:1659409866
必填
data
object
数据字典
必填
plan
object
数据字典
必填
id
int
示例:1
必填
name
string
示例:618方案
必填
time_desc
string
示例:6月18号到6月25号
必填
file
string
示例:http://qncw.daoben.net/assets/img/qrcode.png
必填
status
int
示例:1
必填
state
int
示例:0
必填
status_note
object
示例:null
必填
goods_status
int
示例:2
必填
goods_status_note
string
示例:通过了
必填
price_status
int
示例:1
必填
price_status_note
object
示例:null
必填
user_id
int
示例:1
必填
updatetime
int
示例:1659409866
必填
createtime
int
示例:1659318832
必填
status_text
string
示例:Status 1
必填
state_text
string
示例:State 0
必填
createtime_text
string
示例:2022-08-02
必填
plan_goods
array
数据列表
必填
id
int
示例:2
必填
plan_id
int
示例:1
必填
goods_id
int
示例:1349
必填
price_param
object
数据字典
必填
member
int
示例:10
必填
member0
int
示例:8
必填
member1
int
示例:6
必填
member2
int
示例:5
必填
member3
int
示例:4
必填
member4
int
示例:3
必填
share_param
object
数据字典
必填
share1
int
示例:1
必填
share2
float
示例:0.6
必填
share3
float
示例:0.3
必填
share4
float
示例:0.2
必填
cost_param
object
数据字典
必填
cost_price
int
示例:15
必填
cost_type
string
示例:销售成本
必填
weight
float
示例:1.5
必填
freight
int
示例:3
必填
freight1
int
示例:5
必填
freight2
int
示例:4
必填
express_type
string
示例:圆通
必填
ware_price
int
示例:1
必填
pack_price
float
示例:0.2
必填
sorting_price
float
示例:0.1
必填
complex_param
object
数据字典
必填
limit_num
int
示例:0
必填
total_price
int
示例:18
必填
profit
int
示例:5
必填
profit_rate
float
示例:0.3
必填
updatetime
int
示例:1659409866
必填
createtime
int
示例:1659347229
必填
goods
object
数据字典
必填
id
int
示例:1349
必填
cate_ids
string
示例:233
必填
goods_id
int
示例:1386
必填
goods_no
string
示例:Z-22061402
必填
name
string
示例:13099元服务体验特供礼包(方B/C型)(搭载560次六位一体)
必填
image
string
示例:https://oss.qianniangy.net/web/uploads/image/store_1/c2bb82121a077e91fbd987a264ff3eec35badc71.jpg
必填
attr_id
int
示例:191
必填
attr_name
string
示例:方B
必填
goods_num
int
示例:500
必填
lock_num
int
示例:0
必填
noticy_num
int
示例:0
必填
status
int
示例:1
必填
is_device
int
示例:0
必填
sort
int
示例:0
必填
createtime
int
示例:1658913346
必填
updatetime
int
示例:1658913346
必填
subgoods
array
数据列表
必填
id
int
示例:3
必填
plan_goods_id
int
示例:2
必填
goods_id
int
示例:1348
必填
createtime
int
示例:1659347229
必填
goods
object
数据字典
必填
id
int
示例:1348
必填
cate_ids
string
示例:225
必填
goods_id
int
示例:1385
必填
goods_no
string
示例:Z-22061401
必填
name
string
示例:百艾云集艾草三伏保健贴(30盒起订)
必填
image
string
示例:https://oss.qianniangy.net/web/uploads/image/store_1/9db28e6fbe4b2fd82eb92089cb75e618b5406512.jpg
必填
attr_id
int
示例:2
必填
attr_name
string
示例:默认
必填
goods_num
int
示例:350
必填
lock_num
int
示例:0
必填
noticy_num
int
示例:0
必填
status
int
示例:1
必填
is_device
int
示例:0
必填
sort
int
示例:0
必填
createtime
int
示例:1658913346
必填
updatetime
int
示例:1658913346
必填