    public function save(){
        $login_user = $this->checkLogin();

        $team_name = I("team_name");
        $id = I("id/d");

        if ($id) {
            
            D("Team")->where(" id = '$id' ")->save(array("team_name"=>$team_name));

        }else{
            $data['username'] = $login_user['username'] ;
            $data['uid'] = $login_user['uid'] ;
            $data['team_name'] = $team_name ;
            $data['addtime'] = time() ;
            $id = D("Team")->add($data);  
        }

        $return = D("Team")->where(" id = '$id' ")->find();

        if (!$return) {
            $return['error_code'] = 10103 ;
            $return['error_message'] = 'request  fail' ;
        }

        $this->sendResult($return);
        
    }
The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.