刘桂岩 3 年之前
父节点
当前提交
390946e37f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/controller/Index.php

+ 2 - 0
app/controller/Index.php

@@ -31,8 +31,10 @@ class Index extends BaseController
             'hospBarcode'=>$code,
             'hospBarcode'=>$code,
             'SelectType'=>$type
             'SelectType'=>$type
         ];   //请求参数
         ];   //请求参数
+        Db::table('api_log')->insert(['type'=>1,'barcode'=>$code]);
         try{
         try{
             $result = $client->GetDetailDataByHospBarcode3($data);   //请求获取接口
             $result = $client->GetDetailDataByHospBarcode3($data);   //请求获取接口
+            Db::table('api_log')->insert(['type'=>2,'barcode'=>$code]);
             $data = ((array)$result)['GetDetailDataByHospBarcode3Result'];
             $data = ((array)$result)['GetDetailDataByHospBarcode3Result'];
             $obj = simplexml_load_string("<data>".$data."</data>","SimpleXMLElement", LIBXML_NOCDATA);
             $obj = simplexml_load_string("<data>".$data."</data>","SimpleXMLElement", LIBXML_NOCDATA);
             if($obj)
             if($obj)