904118851 hai 5 meses
pai
achega
2eecb54560
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      common/dbproxy/tg_main.lua
  2. 3 3
      service/backmgr/tg_butler.lua

+ 1 - 1
common/dbproxy/tg_main.lua

@@ -64,7 +64,7 @@ end
 
 function M.search(msg_body)
 
-    local isok ,key =  tools.checkData({"material_platform_id","wx_miniapp_create_status","genre","template_bid","cpa_bid","page_size","page_number","main_name","running_status","custom_budget","pay_type","tg_platform_id","butler_id","tg_app_index","is_open_create_link","is_delete"},msg_body)
+    local isok ,key =  tools.checkData({"delivery_mode","material_platform_id","wx_miniapp_create_status","genre","template_bid","cpa_bid","page_size","page_number","main_name","running_status","custom_budget","pay_type","tg_platform_id","butler_id","tg_app_index","is_open_create_link","is_delete"},msg_body)
    
     if not isok then
         return false,string.format("缺少字段: %s.", key)

+ 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({"butler_name","cc_account_id","mail","id","tg_platform_ids"},msg_body)
+    local isok ,key =  tools.checkData({"advertiser_id","butler_name","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 name = '%s', cc_account_id = %d ,email = '%s' , tg_platform_ids = '%s'  WHERE id = %d ",
-    msg_body.butler_name,msg_body.cc_account_id,msg_body.mail,msg_body.tg_platform_ids,msg_body.id)
+    local sql = string.format("UPDATE  `advertiser_butler` SET  advertiser_id = %d ,name = '%s', cc_account_id = %d ,email = '%s' , tg_platform_ids = '%s'  WHERE id = %d ",
+    msg_body.advertiser_id,msg_body.butler_name,msg_body.cc_account_id,msg_body.mail,msg_body.tg_platform_ids,msg_body.id)
     skynet.error("sql:",sql)
     mysqldbx.query(sql)
     return true