Skip to content

Commit

Permalink
Update log
Browse files Browse the repository at this point in the history
  • Loading branch information
danial303065 committed Aug 12, 2024
1 parent fc52d32 commit 47aab5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions packages/relay/src/routers/PaymentRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export class PaymentRouter {
if (mobileData !== undefined) {
// tslint:disable-next-line:one-variable-per-declaration
let title, shopLabel, amountLabel, pointLabel: string;
if (mobileData.language === "kr") {
if (mobileData.language === "ko") {
title = "포인트 사용 알림";
shopLabel = "구매처";
amountLabel = "구매 금액";
Expand Down Expand Up @@ -1062,6 +1062,9 @@ export class PaymentRouter {
}
}

logger.info(`shopInfo.delegator : ${shopInfo.delegator}`);
logger.info(`hasDelegator : ${hasDelegator}`);

if (hasDelegator) {
this.metrics.add("success", 1);
return res.status(200).json(
Expand Down Expand Up @@ -1089,6 +1092,9 @@ export class PaymentRouter {

const mobileData = await this.storage.getMobile(shopInfo.account, MobileType.SHOP_APP);

logger.info(`this.config.relay.testMode : ${this.config.relay.testMode}`);
logger.info(`mobileData?.account : ${mobileData?.account}`);
logger.info(`mobileData?.language : ${mobileData?.language}`);
if (!this.config.relay.testMode && mobileData === undefined) {
return res.status(200).json(ResponseMessage.getErrorMessage("2005"));
}
Expand All @@ -1097,7 +1103,7 @@ export class PaymentRouter {
/// 상점주에게 메세지 발송
// tslint:disable-next-line:one-variable-per-declaration
let title, shopLabel, amountLabel, pointLabel: string;
if (mobileData.language === "kr") {
if (mobileData.language === "ko") {
title = "마일리지 사용 취소 알림";
shopLabel = "구매처";
amountLabel = "구매 금액";
Expand Down Expand Up @@ -1125,6 +1131,7 @@ export class PaymentRouter {
);
contents.push(`${pointLabel} : ${new Amount(item.paidPoint, 18).toDisplayString(true, 0)} POINT`);

logger.info(`contents.join(", ") : ${contents.join(", ")}`);
await this._sender.send(to, title, contents.join(", "), data);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/relay/src/routers/ShopRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ export class ShopRouter {
let title: string;
let shopLabel: string;
let currencyLabel: string;
if (mobileData.language === "kr") {
if (mobileData.language === "ko") {
title = "상점 정보 변경 요청";
shopLabel = "상점이름";
currencyLabel = "정산 환률 심벌";
Expand Down Expand Up @@ -897,7 +897,7 @@ export class ShopRouter {
let statusLabel: string;
let activeLabel: string;
let inactiveLabel: string;
if (mobileData.language === "kr") {
if (mobileData.language === "ko") {
title = "상점 상태 변경 요청";
shopLabel = "상점이름";
statusLabel = "변경될 상태값";
Expand Down

0 comments on commit 47aab5a

Please sign in to comment.