Setup thai

This commit is contained in:
Ittipat Lusuk 2025-08-06 16:16:26 +07:00
parent 99b6232436
commit 8b3d74630b
4 changed files with 25 additions and 2 deletions

View file

@ -6,4 +6,5 @@ node_modules
*.md *.md
logs logs
priceslot.* priceslot.*
debug.* debug.*
.env

20
Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM node:20-slim
RUN apt-get update && apt-get install -y tzdata && rm -rf /var/lib/apt/lists/*
ENV TZ=Asia/Bangkok
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ENV DEBUG=server:*
ENV PORT=36530
EXPOSE 36530
CMD [ "npm","start" ]

2
app.js
View file

@ -82,7 +82,7 @@ const sheet = GoogleFunctions.SpreadSheets(auth);
// GoogleFunctions.getPriceSlotValues(sheet, "tha"); // GoogleFunctions.getPriceSlotValues(sheet, "tha");
// v3 !!!! // v3 !!!!
// GoogleFunctions.syncProfilePrice(sheet, "tha", false); GoogleFunctions.syncProfilePrice(sheet, "tha", false);
// //
// Test Taobin SyncText // Test Taobin SyncText

View file

@ -179,6 +179,8 @@ function getSlotFunctionByIndex(index) {
return (price) => price - 5; return (price) => price - 5;
case 8: case 8:
return (price) => "HIDE"; return (price) => "HIDE";
case 9:
return (price) => price * 0.60;
default: default:
return (price) => price; return (price) => price;
} }