$check = self::USERNAME.$condition['userphone'].$condition['showid'].$condition['seats'].self::PASSWORD; #生成验证的key $checkcode = strtoupper(md5($check)); $seats = str_replace(',','%2C',$condition['seats']); $url = self::URLTWO.'?cmd=lockSeat&user='.self::USERNAME.'&userphone='.$condition['userphone'].'&showid='.$condition['showid'].$qq.'&seats='.$seats.'&checkcode='.$checkcode; $data = $this->postData($url); $result = $this->xml2json($data,true);