Browse Source

接口对接

cqpCow 1 year ago
parent
commit
81868628bc
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/Service/JRFIDServerService.php

+ 1 - 3
app/Service/JRFIDServerService.php

@@ -231,13 +231,11 @@ class JRFIDServerService extends Service
     public function screenPrint($data){
         if(empty($data['id'])) return [false, '数据ID不能为空'];
         if(empty($data['type'])) return [false, 'TYPE不能为空'];
-        if(! isset($data['print_type'])) return [false, 'PRINTTYPE不能为空'];
 
         $rsaService = new RsaEncryptionService();
         $dataToEncrypt = [
             'id' => $data['id'],
-            'type' => $data['type'],
-            'print_type' => $data['print_type']
+            'type' => $data['type']
         ];
         $encryptedData = $rsaService->encrypt(json_encode($dataToEncrypt));