Exemplo n.º 1
0
             $this->team->update_team_type($k, intval(count($v)));
         }
     }
     if ($team_category) {
         //更新小组分类下小组数目
         foreach ($team_category as $k => $v) {
             $this->team->update_team_category($k, intval(count($v)));
         }
     }
     $this->setXmlNode('team_info', 'team');
     $this->addItem($result);
     $this->output();
 }
 //设置状态
 private function setState($team_ids, $state)
 {
     //删除小组的关注
     $option = new option();
     $attenData = array('source' => 'team', 'action' => 'attention', 'source_id' => $team_ids, 'state' => $state);
     $option->updateState($attenData);
     //删除小组的标签包含主题标签
     $mark = new mark();
     $markData = array('parent_id' => $team_ids, 'state' => $state);