|
@@ -160,7 +160,7 @@ end
|
|
|
|
|
|
--推广增量
|
|
--推广增量
|
|
function M.tui_guang_zeng_liang(msg_body)
|
|
function M.tui_guang_zeng_liang(msg_body)
|
|
- local isok ,key = tools.checkData({"main_id","quantity","bid_type","id_list"},msg_body)
|
|
|
|
|
|
+ local isok ,key = tools.checkData({"main_id","quantity","bid_type","id_list","is_rise"},msg_body)
|
|
if not isok then
|
|
if not isok then
|
|
return false,string.format("缺少字段: %s.", key)
|
|
return false,string.format("缺少字段: %s.", key)
|
|
end
|
|
end
|
|
@@ -175,7 +175,7 @@ function M.tui_guang_zeng_liang(msg_body)
|
|
sql = string.format("UPDATE video_material SET bl_status = 1 WHERE id =%d ",id)
|
|
sql = string.format("UPDATE video_material SET bl_status = 1 WHERE id =%d ",id)
|
|
mysqldbx.query(sql)
|
|
mysqldbx.query(sql)
|
|
|
|
|
|
- sql = string.format("INSERT INTO `task_boost_material_queue` (material_id,main_id,quantity,bid_type) VALUES (%d,%d,%d,%d)",
|
|
|
|
|
|
+ sql = string.format("INSERT INTO `task_boost_material_queue` (material_id,main_id,quantity,bid_type,is_rise) VALUES (%d,%d,%d,%d,%d)",
|
|
material_id,msg_body.main_id,msg_body.quantity,msg_body.bid_type)
|
|
material_id,msg_body.main_id,msg_body.quantity,msg_body.bid_type)
|
|
mysqldbx.query(sql)
|
|
mysqldbx.query(sql)
|
|
|
|
|