Преглед на файлове

每刻 接口增加参数

cqp преди 9 месеца
родител
ревизия
80facee86f
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      app/Service/MayCurServerService.php

+ 6 - 0
app/Service/MayCurServerService.php

@@ -114,6 +114,8 @@ class MayCurServerService extends Service
         $settledAtEnd = strtotime($data['settledAtEnd'] . '23:59:59');
         if(empty($settledAtStart)) return [false, '单据的支付时间格式错误'];
         if(empty($settledAtEnd)) return [false, '单据的支付时间格式错误'];
+        $formCodes = [];
+        if(! empty($data['formCodes'])) $formCodes = array_filter($data['formCodes']);
 
         $pageNo = 1;
         $pageSize = 10;
@@ -135,6 +137,7 @@ class MayCurServerService extends Service
             "legalEntityBizCodes" => [
                 "ELC2106251C5CMNI8"
             ],
+            "formCodes" => $formCodes,
         ];
 
         return [true, $return];
@@ -281,6 +284,8 @@ class MayCurServerService extends Service
         $settledAtEnd = strtotime($data['settledAtEnd'] . '23:59:59');
         if(empty($settledAtStart)) return [false, '单据的支付时间格式错误'];
         if(empty($settledAtEnd)) return [false, '单据的支付时间格式错误'];
+        $formCodes = [];
+        if(! empty($data['formCodes'])) $formCodes = array_filter($data['formCodes']);
 
         $pageNo = 1;
         $pageSize = 10;
@@ -302,6 +307,7 @@ class MayCurServerService extends Service
             "legalEntityBizCodes" => [
                 "ELC2106251C5CMNI8"
             ],
+            "formCodes" => $formCodes,
         ];
 
         return [true, $return];