904118851 8 kuukautta sitten
vanhempi
sitoutus
1c33a03b67
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      service/backmgr/tg_butler.lua

+ 3 - 3
service/backmgr/tg_butler.lua

@@ -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