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