刘桂岩 2 년 전
부모
커밋
a33993d6f4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/Index.php

+ 1 - 1
app/controller/Index.php

@@ -71,7 +71,6 @@ class Index extends BaseController
                     'StartDate'=>'',
                     'EndDate'=>''
                 ]]));   //请求获取接口
-            Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>json_encode($result)]);
             $data = ((array)$result)['QueryReports2Result'];
             $info = json_decode(json_encode($data),true);
             Db::table('api_log')->insert(['type'=>4,'barcode'=>$code,'data'=>json_encode($result)]);
@@ -97,6 +96,7 @@ class Index extends BaseController
                 }
 
             }
+            Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>json_encode($result)]);
             return 'success';
         }catch(\SoapFault $e){
             return $e->getMessage();