public function sendSelfFormatMessage($msgInfo) { /* 这里改了 $client = new HttpClient(FEIE_HOST,FEIE_PORT); if(!$client->post('/FeieServer/printSelfFormatOrder',$msgInfo)){ //提交失败 return 'faild'; } else{ return $client->getContent(); }*/ $client = new SoapClient("http://114.215.142.59:8080/kdtprint/services/printcenter?wsdl"); $client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false; $client->xml_encoding = 'UTF-8'; $aryPara = array('deviceno' => $msgInfo['clientCode'], 'devicekey' => $msgInfo['key'], 'printid' => strtotime("now"), 'message' => "^N" . $msgInfo['printTimes'] . "\n" . $msgInfo['printInfo']); $result = $client->addorder($aryPara); //var_dump($result); exit(); return $result; }