From b0eb19e82e6e16bcf2641853d5d7f6c5eab9d246 Mon Sep 17 00:00:00 2001 From: leejinho Date: Thu, 26 Mar 2020 15:37:07 +0900 Subject: [PATCH] =?UTF-8?q?ERP=20weblink=20=EC=97=B0=EB=8F=99=EC=8B=9C=20?= =?UTF-8?q?=EC=82=AC=EB=B2=88=20uppercase=20=ED=9B=84=20=EC=95=94=ED=98=B8?= =?UTF-8?q?=ED=99=94=20=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/services/daesang-cipher.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/ucap-webmessenger-daesang/src/lib/services/daesang-cipher.service.ts b/projects/ucap-webmessenger-daesang/src/lib/services/daesang-cipher.service.ts index d5d81d96..fb231098 100644 --- a/projects/ucap-webmessenger-daesang/src/lib/services/daesang-cipher.service.ts +++ b/projects/ucap-webmessenger-daesang/src/lib/services/daesang-cipher.service.ts @@ -53,7 +53,8 @@ export class DaesangCipherService { encryptForSapErp(pvUserKey: string, employeeNum: string): string { // const txt = '20200221090321_asdfghjk'; // 1QgLAiLqJ6Uo6bE4Qk1o3Yd6mfqxXSnmqXX%2FXLL7DoA%3D // const txt = '20200221101444_asdfghjk'; // Lz1TIdGTQQMui%2BBHMdj8fatYYhXbwJEL%2BJ91C7jUWEs%3D - const str = moment().format('YYYYMMDDHHmmss') + '_' + employeeNum; + const str = + moment().format('YYYYMMDDHHmmss') + '_' + employeeNum.toUpperCase(); const secretKeyToByteArray: Buffer = Buffer.from(pvUserKey, 'utf8').slice( 0, 16