*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }

:)

ThinkPHP V' . \think\facade\App::version() . '
14载初心不改 - 你值得信赖的PHP框架

[ V6.0 版本由 亿速云 独家赞助发布 ]
'; } public function hello($name = 'ThinkPHP6') { return 'hello,' . $name; } public static function getDiAnData($data) { $xml = $data; $obj = simplexml_load_string($xml,"SimpleXMLElement", LIBXML_NOCDATA); $conn = mysqli_connect('127.0.0.1','root','123456'); return 2; $a = mysqli_select_db($conn,'pacscenter'); return 3; $sql = "select * from dianApiInfo where Barcode='$obj'"; return $sql; $result = mysqli_query($conn, $sql); $info = mysqli_fetch_row($result); if(!empty($info)) { $return = [ 'Response'=>[ 'resultCode'=>'1', 'result'=>'请求成功', 'xml'=>$info[1], 'patientId'=>$info[2], 'barCode'=>$info[3] ] ]; $a2x = new array2xml(); $r = $a2x->toXml($return); return $r; }else{ $return = [ 'Response'=>[ 'resultCode'=>'0', 'result'=>'数据无法找到', 'xml'=>'', 'patientId'=>'', 'barCode'=>$obj ] ]; $a2x = new array2xml(); $r = $a2x->toXml($return); return $r; } // $a2x = new array2xml(); // $data = $a2x->toXml($info); // return htmlspecialchars($data); return $data; } }