|
@@ -17,12 +17,12 @@ local cjson = require "cjson"
|
|
|
-- end
|
|
|
|
|
|
function M.modify_butler(msg_body)
|
|
|
- local isok ,key = tools.checkData({"cc_account_id","mail","id"},msg_body)
|
|
|
+ local isok ,key = tools.checkData({"cc_account_id","mail","id","tg_platform_ids"},msg_body)
|
|
|
if not isok then
|
|
|
return false,string.format("缺少字段: %s.", key)
|
|
|
end
|
|
|
- local sql = string.format("UPDATE `advertiser_butler` SET cc_account_id = %d ,email = '%s' WHERE id = %d ",
|
|
|
- msg_body.cc_account_id,msg_body.mail,msg_body.id)
|
|
|
+ local sql = string.format("UPDATE `advertiser_butler` SET cc_account_id = %d ,email = '%s' , tg_platform_ids = '%s' WHERE id = %d ",
|
|
|
+ msg_body.cc_account_id,msg_body.mail,msg_body.tg_platform_ids,msg_body.id)
|
|
|
mysqldbx.query(sql)
|
|
|
return true
|
|
|
end
|