刘桂岩 2 年 前
コミット
effe0fe835
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/controller/Index.php

+ 1 - 1
app/controller/Index.php

@@ -73,7 +73,7 @@ class Index extends BaseController
         ];   //请求参数
 //        try{
             $a2x = new array2xml();
-            $data = $a2x->toXml($data);
+            $data = $a2x->toXml(['ReqInfo'=>$data]);
             var_dump(['ReqInfo'=>htmlspecialchars($data)]);
             var_dump(['ReqInfo'=>$data]);
             $result = $client->QueryReports2(['ReqInfo'=>$data]);   //请求获取接口