Browse Source

接口对接

cqpCow 10 tháng trước cách đây
mục cha
commit
daead8d02c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      app/Service/JRFIDServerService.php

+ 4 - 0
app/Service/JRFIDServerService.php

@@ -444,11 +444,15 @@ class JRFIDServerService extends Service
     public function screenGetProDtData($data,$param){
         if(empty($data['id'])) return [false, '数据ID不能为空'];
         if(empty($data['type'])) return [false, 'TYPE不能为空'];
+        if(empty($data['contract_no'])) return [false, '合同不能为空'];
+        if(empty($data['drawing_no'])) return [false, '图号不能为空'];
 
         $url = config("j_rfid.screenGetProDtData");
         $post = [
             'id' => $data['id'],
             'type' => $data['type'],
+            'contract_no' => $data['contract_no'],
+            'drawing_no' => $data['drawing_no'],
         ];
 
         list($status,$result) = $this->post_helper($url,json_encode($post),$param['header']);