|
@@ -168,7 +168,7 @@ function M.get_main_ad_run_number(msg_body)
|
|
|
local nums = #res
|
|
|
sql = string.format("select * from `tg_main` where id = %d LIMIT 1 ",msg_body.main_id)
|
|
|
res = mysqldbx.query(sql)
|
|
|
- local max = nums * res[1].ad_quantity
|
|
|
+ local max = nums * res[1].max_ad_quantity
|
|
|
return true,{all_run_number=all_run_number,max=max}
|
|
|
end
|
|
|
|