    public function attorn(){
        $login_user = $this->checkLogin();
        $this->checkAdmin();
        $username = I("username");
        $item_id = I("item_id/d");

        $item  = D("Item")->where("item_id = '$item_id' ")->find();


        $member = D("User")->where(" username = '%s' ",array($username))->find();

        if (!$member) {
            $this->sendError(10209);
            return ;
        }

        $data['username'] = $member['username'] ;
        $data['uid'] = $member['uid'] ;
        

        $id = D("Item")->where(" item_id = '$item_id' ")->save($data);

        $return = D("Item")->where("item_id = '$item_id' ")->find();

        if (!$return) {
            $this->sendError(10101);
            return ;
        }

        $this->sendResult($return);
    }