Bladeren bron

如果新建计划失败则抛出异常

liyuyi@c-top.com.cn 4 jaren geleden
bovenliggende
commit
8d1f3c8c5c
2 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 1 0
      ai_target_combine_handler.py
  2. 1 3
      readme.txt

+ 1 - 0
ai_target_combine_handler.py

@@ -205,6 +205,7 @@ class GetTargetAndAssemblyParameters(object):
             campaign_info_to_db['message'] = response_data['message']
             campaign_info_to_db['status'] = response_data['code']
             res = -1
+            raise Exception("账户 %s,新建广告计划失败,详细:%s!" % (self.account_id, str(response_data)))
 
         # 3、写入计划层级的操作表
         df = pd.DataFrame.from_dict(campaign_info_to_db, orient='index').T

+ 1 - 3
readme.txt

@@ -15,11 +15,9 @@ hhttp://139.186.134.115:8806/jeecg-boot/jeecg-boot/kuaishou/create/createUnitAnd
 telnet 139.186.165.84 31012
 
 
-修改region 字段类型
-
 上线的准备
 1、ctop_ai_kuaishou_unit_level_operation_record 表中 新增字段: `target_combine_id` int(11) DEFAULT NULL COMMENT '定向组合id'
-2、修改region 字段类型, 修改为text类型
+2、ctop_ai_kuaishou_unit_level_operation_record 表中 修改region 字段类型, 修改为 mediumtext 类型