Procházet zdrojové kódy

MOD:修改计划 typesetting 相关字段

cxyu před 3 roky
rodič
revize
3e7c478446
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      web_module/tornado_api.py
  2. 1 1
      wechat_action/create_ad_plan.py

+ 1 - 1
web_module/tornado_api.py

@@ -122,7 +122,7 @@ class create_ad_plan(BaseHandler):
             # 2.历史记录
             print(_)
             for action_type in ['create_ad_plan', 'create_ad_layout']:
-                object_name = _['title'] if action_type == 'create_ad_plan' else _['idea']['jump_type_page_type']
+                object_name = _['title'] if action_type == 'create_ad_plan' else _['idea']['jump_type_page_type']['layout_name']
                 action_info = {'user_id': user_id, 'service_name': _['service_name'], 'wechat_name': _['wechat_name'],
                                'action_type': action_type, 'object_name': object_name, 'task_name': task_name,
                                'status': 'todo'}

+ 1 - 1
wechat_action/create_ad_plan.py

@@ -210,7 +210,7 @@ class CreateAdPlan():
         human_input = [_ for _ in self.driver.find_elements_by_xpath('//*[@class="adui-input-base"]') if
                        _.get_attribute("placeholder") == '输入名称搜索人群包'][0]
 
-        for _ in self.task['human_info_package']:
+        for _ in self.task['human_info_package']['name']:
             human_input.click()
             human_input.send_keys(_)
             human_input.send_keys(Keys.RETURN)