소스 검색

接口对接

cqpCow 1 년 전
부모
커밋
81868628bc
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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));