cqp 5 days ago
parent
commit
7b4babeec1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Service/TestService.php

+ 2 - 2
app/Service/TestService.php

@@ -777,7 +777,7 @@ class TestService extends Service
 
         $json = json_encode($final_data);
 
-        list($status, $result) = $this->post_helper($url, json_encode($json), $header, 60, $title . '生成采购入库单');
+        list($status, $result) = $this->post_helper($url,$json, $header, 60, $title . '生成采购入库单');
 
         if(! $status) return [false, $result];
         if(! isset($result['code'])) return [false, '采购入库单生成失败'];
@@ -858,7 +858,7 @@ class TestService extends Service
         $url = $host . "/api/OtherIn/Add";
 
         $json = json_encode($final_data);
-        list($status, $result) = $this->post_helper($url, json_encode($json), $header, 60, $title . '生成其他入库单');
+        list($status, $result) = $this->post_helper($url, $json, $header, 60, $title . '生成其他入库单');
 
         if(! $status) return [false, $result];