904118851 vor 5 Monaten
Ursprung
Commit
733d9eb3d4
3 geänderte Dateien mit 10 neuen und 3 gelöschten Zeilen
  1. 4 0
      .gitignore
  2. 3 0
      log/2025_03_11.log
  3. 3 3
      service/backmgr/tg_butler.lua

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+etc/run_config.lua
+bin/jl_tg_config_back.pid
+log/
+

+ 3 - 0
log/2025_03_11.log

@@ -1,3 +1,4 @@
+<<<<<<< HEAD
 25/03/11 16:48:27:00000017(1741682907.47): ............dump...........
 25/03/11 16:48:27:00000017(1741682907.47):  {"cmd":"tg_main","fun":"search","data":{"main_name":"","page_number":1,"page_size":20,"tg_platform_id":"","material_platform_id":"","butler_id":"","tg_app_index":"","delivery_mode":" ","running_status":"","pay_type":"","is_open_create_link":"","wx_miniapp_create_status":"","is_delete":"","cpa_bid":"","custom_budget":"","template_bid":"","genre":""}}
 25/03/11 16:48:27:00000017(1741682907.47): sql: SELECT * FROM tg_main where 1=1  AND delivery_mode =  ' '  LIMIT 20 OFFSET 0 
@@ -6339,3 +6340,5 @@ stack traceback:
 25/03/11 22:53:22:00000017(1741704802.39):  {"cmd":"tg_app","fun":"search","data":{"butler_id":"","tg_platform_id":"","system_platform":"","page_number":1,"page_size":20}}
 25/03/11 22:53:22:00000017(1741704802.43): ............dump...........
 25/03/11 22:53:22:00000017(1741704802.43):  {"cmd":"tg_app","fun":"getAppList","data":{}}
+=======
+>>>>>>> 7d25d408d384c920102447e4f5f3122b0c49fb09

+ 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({"oce_product_id","oce_product_platform_id","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' ,oce_product_id = '%s' , oce_product_platform_id = '%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.oce_product_id,msg_body.oce_product_platform_id,msg_body.id)
     skynet.error("sql:",sql)
     mysqldbx.query(sql)
     return true