刘桂岩 vor 2 Jahren
Ursprung
Commit
cf5b1b0515
4 geänderte Dateien mit 34 neuen und 2 gelöschten Zeilen
  1. 1 1
      .env
  2. 1 1
      app/controller/Index.php
  3. 31 0
      public/handleReport.wsdl
  4. 1 0
      route/app.php

+ 1 - 1
.env

@@ -1 +1 @@
-APP_DEBUG = true

[APP]
DEFAULT_TIMEZONE = Asia/Shanghai

[DATABASE]
TYPE = mysql
HOSTNAME = 127.0.0.1
DATABASE = pacscenter
USERNAME = root
PASSWORD =123456
HOSTPORT = 3306
CHARSET = utf8
DEBUG = true

[LANG]
default_lang = zh-cn
+APP_DEBUG = true

[APP]
DEFAULT_TIMEZONE = Asia/Shanghai

[DATABASE]
TYPE = mysql
HOSTNAME = 127.0.0.1
DATABASE = tijianzhongxin
USERNAME = root
PASSWORD =
HOSTPORT = 3306
CHARSET = utf8
DEBUG = true

[LANG]
default_lang = zh-cn

+ 1 - 1
app/controller/Index.php

@@ -144,7 +144,7 @@ class Index extends BaseController
         // 使用中文文件名需要转码
         file_put_contents('/data/gitcode/newpacs/public'.$file_path.$rename.'.'.$ext,$rawdata);
         // 返回路径
-        $path = '/public'.$file_path.$rename.".".$ext;
+        $path = '`/public'.$file_path.$rename.".".$ext;
         $ins = ['type'=>$ext,'url'=>$path,'barcode'=>$barCode];
         Db::table('annex')->insert($ins);
         $patientId = Db::table('dianapiinfo')->where('Barcode',$barCode)->value('patientId');

+ 31 - 0
public/handleReport.wsdl

@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<definitions name="handleReport" targetNamespace="urn:handleReport" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:handleReport" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+<types xmlns="http://schemas.xmlsoap.org/wsdl/" />
+<portType name="handleReportPort"><operation name="getDiAnData">
+<input message="tns:getDiAnDataRequest" />
+<output message="tns:getDiAnDataResponse" />
+</operation>
+</portType>
+<binding name="handleReportBinding" type="tns:handleReportPort">
+<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+<operation name="getDiAnData">
+<soap:operation soapAction="urn:handleReport#handleReport#getDiAnData" />
+<input><soap:body use="encoded" namespace="urn:handleReport" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+</input>
+<output>
+<soap:body use="encoded" namespace="urn:handleReport" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+</output>
+</operation>
+</binding>
+<service name="handleReport">
+<documentation />
+<port name="handleReportPort" binding="tns:handleReportBinding"><soap:address location="http://localhost:8085/server.php" />
+</port>
+</service>
+<message name="getDiAnDataRequest">
+<part name="data" type="xsd:string" />
+</message>
+<message name="getDiAnDataResponse">
+<part name="getDiAnData" type="xsd:string" />
+</message>
+</definitions>

+ 1 - 0
route/app.php

@@ -16,3 +16,4 @@ Route::get('think', function () {
 
 Route::get('hello/:name', 'index/hello');
 Route::get('getReport', 'index/getReport');
+Route::get('hello', 'index/hello');