Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,9 @@ def card_authorization(onfftid, tot_amt, com_tax_amt, com_free_amt, com_vat_amt,
|
|
27 |
else:
|
28 |
return {"error": "์๋ชป๋ ์นด๋ ์ ํ์
๋๋ค."}
|
29 |
|
|
|
|
|
|
|
30 |
data = {
|
31 |
"onfftid": onfftid,
|
32 |
"tot_amt": tot_amt,
|
@@ -78,7 +81,11 @@ with gr.Blocks() as app:
|
|
78 |
com_free_amt = gr.Number(label="๋น๊ณผ์ธ์น์ธ๊ธ์ก")
|
79 |
com_vat_amt = gr.Number(label="๋ถ๊ฐ์ธ")
|
80 |
card_no = gr.Textbox(label="์นด๋๋ฒํธ")
|
81 |
-
install_period = gr.Dropdown(
|
|
|
|
|
|
|
|
|
82 |
user_nm = gr.Textbox(label="๊ฒฐ์ ์๋ช
")
|
83 |
user_phone2 = gr.Textbox(label="๊ฒฐ์ ์ ์ฐ๋ฝ์ฒ")
|
84 |
product_nm = gr.Textbox(label="์ํ๋ช
")
|
|
|
27 |
else:
|
28 |
return {"error": "์๋ชป๋ ์นด๋ ์ ํ์
๋๋ค."}
|
29 |
|
30 |
+
# ํ ๋ถ๊ธฐ๊ฐ ์ฒ๋ฆฌ
|
31 |
+
install_period = install_period.split(' - ')[0] # "00 - ์ผ์๋ถ"์์ "00"๋ง ์ถ์ถ
|
32 |
+
|
33 |
data = {
|
34 |
"onfftid": onfftid,
|
35 |
"tot_amt": tot_amt,
|
|
|
81 |
com_free_amt = gr.Number(label="๋น๊ณผ์ธ์น์ธ๊ธ์ก")
|
82 |
com_vat_amt = gr.Number(label="๋ถ๊ฐ์ธ")
|
83 |
card_no = gr.Textbox(label="์นด๋๋ฒํธ")
|
84 |
+
install_period = gr.Dropdown(
|
85 |
+
choices=[f"{str(i).zfill(2)} - {'์ผ์๋ถ' if i == 0 else f'{i}๊ฐ์'}" for i in range(13)],
|
86 |
+
label="ํ ๋ถ๊ธฐ๊ฐ ์ ํ",
|
87 |
+
value="00 - ์ผ์๋ถ"
|
88 |
+
)
|
89 |
user_nm = gr.Textbox(label="๊ฒฐ์ ์๋ช
")
|
90 |
user_phone2 = gr.Textbox(label="๊ฒฐ์ ์ ์ฐ๋ฝ์ฒ")
|
91 |
product_nm = gr.Textbox(label="์ํ๋ช
")
|