浏览代码

接口对接

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));