|  | @@ -35,24 +35,24 @@ class IdeaAction:
 | 
	
		
			
				|  |  |          select_elements = self.driver.find_elements_by_xpath('//*[@class="label-2ZOAbuO31o"]')
 | 
	
		
			
				|  |  |          # 点击跳转
 | 
	
		
			
				|  |  |          for _ in select_elements:
 | 
	
		
			
				|  |  | -            if _.text == '公众号详情页' and idea_dic['jump_type'] == 2:
 | 
	
		
			
				|  |  | +            if _.text == '公众号详情页' and idea_dic['jump_type'] == '2':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  |          time.sleep(random.uniform(0.1, 0.2))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          # 按钮文案
 | 
	
		
			
				|  |  |          for _ in select_elements:
 | 
	
		
			
				|  |  | -            if _.text == '立即咨询' and idea_dic['button_type'] == 2:
 | 
	
		
			
				|  |  | +            if _.text == '立即咨询' and idea_dic['button_type'] == '2':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  | -            if _.text == '立即申请' and idea_dic['button_type'] == 3:
 | 
	
		
			
				|  |  | +            if _.text == '立即申请' and idea_dic['button_type'] == '3':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  | -            if _.text == '阅读小说' and idea_dic['button_type'] == 4:
 | 
	
		
			
				|  |  | +            if _.text == '阅读小说' and idea_dic['button_type'] == '4':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  |          time.sleep(random.uniform(0.1, 0.2))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        if idea_dic['jump_type'] == 1:
 | 
	
		
			
				|  |  | +        if idea_dic['jump_type'] == '1':
 | 
	
		
			
				|  |  |              # 点击按钮跳转
 | 
	
		
			
				|  |  |              for _ in select_elements:
 | 
	
		
			
				|  |  | -                if _.text == '一键关注' and idea_dic['jump_type_button_type'] == 2:
 | 
	
		
			
				|  |  | +                if _.text == '一键关注' and idea_dic['jump_type_button_type'] == '2':
 | 
	
		
			
				|  |  |                      _.click()
 | 
	
		
			
				|  |  |              time.sleep(random.uniform(0.1, 0.2))
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -88,12 +88,12 @@ class IdeaAction:
 | 
	
		
			
				|  |  |          select_elements = self.driver.find_elements_by_xpath('//*[@class="label-2ZOAbuO31o"]')
 | 
	
		
			
				|  |  |          input_elements = self.driver.find_elements_by_xpath('//*[@class="input-3MbKvywHL2"]')
 | 
	
		
			
				|  |  |          # 信息栏
 | 
	
		
			
				|  |  | -        if idea_dic['info_type'] == 1:
 | 
	
		
			
				|  |  | +        if idea_dic['info_type'] == '1':
 | 
	
		
			
				|  |  |              # 头像
 | 
	
		
			
				|  |  |              for _ in select_elements:
 | 
	
		
			
				|  |  |                  if _.text == '头像昵称型':
 | 
	
		
			
				|  |  |                      _.click()
 | 
	
		
			
				|  |  | -        if idea_dic['info_type'] == 2:
 | 
	
		
			
				|  |  | +        if idea_dic['info_type'] == '2':
 | 
	
		
			
				|  |  |              # 文案
 | 
	
		
			
				|  |  |              for _ in select_elements:
 | 
	
		
			
				|  |  |                  if _.text == '文案型':
 | 
	
	
		
			
				|  | @@ -138,11 +138,11 @@ class IdeaAction:
 | 
	
		
			
				|  |  |          self.push_promotion_page()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      def idea_gzh_bottom(self):
 | 
	
		
			
				|  |  | -        if self.task['idea']['idea_type'] == 1:
 | 
	
		
			
				|  |  | +        if self.task['idea']['idea_type'] == '1':
 | 
	
		
			
				|  |  |              self.idea_pic_gzh_botoom()
 | 
	
		
			
				|  |  | -        if self.task['idea']['idea_type'] == 2:
 | 
	
		
			
				|  |  | +        if self.task['idea']['idea_type'] == '2':
 | 
	
		
			
				|  |  |              self.idea_banner_pic_gzh_botoom()
 | 
	
		
			
				|  |  | -        if self.task['idea']['idea_type'] == 3:
 | 
	
		
			
				|  |  | +        if self.task['idea']['idea_type'] == '3':
 | 
	
		
			
				|  |  |              self.idea_banner_business_gzh_bottom()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      def idea_movie_gzh_movie(self):
 | 
	
	
		
			
				|  | @@ -174,12 +174,12 @@ class IdeaAction:
 | 
	
		
			
				|  |  |          select_elements = self.driver.find_elements_by_xpath('//*[@class="label-2ZOAbuO31o"]')
 | 
	
		
			
				|  |  |          input_elements = self.driver.find_elements_by_xpath('//*[@class="input-3MbKvywHL2"]')
 | 
	
		
			
				|  |  |          # 信息栏
 | 
	
		
			
				|  |  | -        if idea_dic['info_type'] == 1:
 | 
	
		
			
				|  |  | +        if idea_dic['info_type'] == '1':
 | 
	
		
			
				|  |  |              # 头像
 | 
	
		
			
				|  |  |              for _ in select_elements:
 | 
	
		
			
				|  |  |                  if _.text == '头像昵称型':
 | 
	
		
			
				|  |  |                      _.click()
 | 
	
		
			
				|  |  | -        if idea_dic['info_type'] == 2:
 | 
	
		
			
				|  |  | +        if idea_dic['info_type'] == '2':
 | 
	
		
			
				|  |  |              # 文案
 | 
	
		
			
				|  |  |              for _ in select_elements:
 | 
	
		
			
				|  |  |                  if _.text == '文案型':
 | 
	
	
		
			
				|  | @@ -210,11 +210,11 @@ class IdeaAction:
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          # 标签展示
 | 
	
		
			
				|  |  |          for _ in select_elements:
 | 
	
		
			
				|  |  | -            if _.text == '不启用' and idea_dic['lable_type'] == 1:
 | 
	
		
			
				|  |  | +            if _.text == '不启用' and idea_dic['lable_type'] == '1':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  | -            if _.text == '好友关注量标签' and idea_dic['lable_type'] == 2:
 | 
	
		
			
				|  |  | +            if _.text == '好友关注量标签' and idea_dic['lable_type'] == '2':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  | -            if _.text == '转化目标量标签' and idea_dic['lable_type'] == 3:
 | 
	
		
			
				|  |  | +            if _.text == '转化目标量标签' and idea_dic['lable_type'] == '3':
 | 
	
		
			
				|  |  |                  _.click()
 | 
	
		
			
				|  |  |          time.sleep(random.uniform(0.1, 0.2))
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -273,10 +273,10 @@ class IdeaAction:
 | 
	
		
			
				|  |  |          time.sleep(random.uniform(0.1, 0.2))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          time.sleep(random.uniform(0.1, 0.5))
 | 
	
		
			
				|  |  | -        if self.task['idea']['data_show'] == 2:
 | 
	
		
			
				|  |  | +        if self.task['idea']['data_show'] == '2':
 | 
	
		
			
				|  |  |              self.driver.find_element_by_xpath(
 | 
	
		
			
				|  |  |                  '//*[@id="wxadcontainer"]/div[1]/div/div[2]/main/div/div[2]/div[2]/div/div[1]/div[1]/div[2]/form/div[5]/div[1]/div/span/span[1]').click()
 | 
	
		
			
				|  |  | -            if self.task['idea']['data_show-type'] == 2:
 | 
	
		
			
				|  |  | +            if self.task['idea']['data_show-type'] == '2':
 | 
	
		
			
				|  |  |                  time.sleep(random.uniform(0.1, 0.5))
 | 
	
		
			
				|  |  |                  WebDriverWait(self.driver, 100).until(lambda driver: self.driver.find_element_by_xpath(
 | 
	
		
			
				|  |  |                      '//*[@id="wxadcontainer"]/div[1]/div/div[2]/main/div/div[2]/div[2]/div/div[1]/div[1]/div[2]/form/div[5]/div[2]/div/div[1]/label/span[1]'))
 |