文档
测试

添加定时任务

POST
http://xhf.qmbzch.cn/api/task/add_task

请求参数

参数名
类型
描述
必填
task_name
str
任务名称 40个字汉字
必填
time_type
str
进行类型 循环或者单次 loop/single
必填
single_date
str
单次执行任务时传入 "2020-08-07, 2020-08-08"
必填
loop_type
str
循环类型 月循环或者周循环 'week','month' (loop才有)
必填
loop_month_day
arr
每月的哪几天的数组 month才有这项 1,2,3,4,31英文字符串连接
必填
loop_week_day
arr
每周的哪几天的数组 week才有这项 1,2,3,4,5,6,0 0代表星期天 英文字符串连接
必填
store_ids
array
门店id数组 1,2,3 英文字符串连接
必填
product_ids
array
商品信息数组 如下 转成json 字符串
必填

响应参数

参数名
类型
描述
必填
state
str
ok/fail
必填
message
str
提示信息 支出那个门店 和哪个任务冲突
必填

说明 / 示例

product_ids= [ [ "product_id" => 1,//货物id "modify_price_type"=>"fixed_plus" //调价模式 'fixed_plus','fixed_reduce','percentage','fixed' 调价模式 fixed_plus 固定架* fixed_reduce 固定减* percentage 百分比 fixed 固定设计成什么 "plus_reduce" => "0.5",//加减多少 "percentag" => "0",//设置成百分比多少 "fixed" => "0",//固定设置成多少值 /*plus_reduce percentag fixed 三个参数必须同时存在 没有值得用''空 对应调价模式*/ ] ...更多货物数据 ]