Spaces:
Sleeping
Sleeping
P0-R6-E1-R4-1D-D managed_auth
#146
by GuXiaopeng - opened
- managed_auth.py +11 -9
managed_auth.py
CHANGED
|
@@ -741,7 +741,9 @@ def _render_payment_purchase_body(language: str) -> None:
|
|
| 741 |
st.caption(tr(language, "payment_support_wechat", value=support_wechat))
|
| 742 |
if support_whatsapp:
|
| 743 |
st.caption(tr(language, "payment_support_whatsapp", value=support_whatsapp))
|
| 744 |
-
if
|
|
|
|
|
|
|
| 745 |
status_result = payment_order_status(order.get("merchant_order_no", ""))
|
| 746 |
updated = dict(status_result.get("order") or {})
|
| 747 |
st.session_state["sp_payment_order"] = updated
|
|
@@ -843,8 +845,8 @@ def render_logged_in_account(
|
|
| 843 |
padding: 0.48rem clamp(0.55rem, 0.85vw, 0.9rem);
|
| 844 |
border: 1px solid rgba(148, 163, 184, 0.30);
|
| 845 |
border-radius: 13px;
|
| 846 |
-
background: #
|
| 847 |
-
color: #
|
| 848 |
font-size: clamp(0.76rem, 0.84vw, 0.92rem);
|
| 849 |
font-weight: 500;
|
| 850 |
line-height: 1.25;
|
|
@@ -882,8 +884,8 @@ def render_logged_in_account(
|
|
| 882 |
padding: 0.45rem 0.72rem;
|
| 883 |
border: 1px solid rgba(148, 163, 184, 0.30);
|
| 884 |
border-radius: 0.5rem;
|
| 885 |
-
background: #
|
| 886 |
-
color: #
|
| 887 |
text-decoration: none !important;
|
| 888 |
white-space: nowrap !important;
|
| 889 |
overflow-wrap: normal !important;
|
|
@@ -897,13 +899,13 @@ def render_logged_in_account(
|
|
| 897 |
}
|
| 898 |
|
| 899 |
.sp-logout-link:hover {
|
| 900 |
-
border-color:
|
| 901 |
-
background: #
|
| 902 |
-
color: #
|
| 903 |
}
|
| 904 |
|
| 905 |
.sp-logout-link:focus-visible {
|
| 906 |
-
outline: 2px solid
|
| 907 |
outline-offset: 2px;
|
| 908 |
}
|
| 909 |
|
|
|
|
| 741 |
st.caption(tr(language, "payment_support_wechat", value=support_wechat))
|
| 742 |
if support_whatsapp:
|
| 743 |
st.caption(tr(language, "payment_support_whatsapp", value=support_whatsapp))
|
| 744 |
+
if payment_provider != "MANUAL_ALIPAY" and st.button(
|
| 745 |
+
tr(language, "payment_check"), key="sp_check_payment_status"
|
| 746 |
+
):
|
| 747 |
status_result = payment_order_status(order.get("merchant_order_no", ""))
|
| 748 |
updated = dict(status_result.get("order") or {})
|
| 749 |
st.session_state["sp_payment_order"] = updated
|
|
|
|
| 845 |
padding: 0.48rem clamp(0.55rem, 0.85vw, 0.9rem);
|
| 846 |
border: 1px solid rgba(148, 163, 184, 0.30);
|
| 847 |
border-radius: 13px;
|
| 848 |
+
background: #dbeafe;
|
| 849 |
+
color: #1e3a5f;
|
| 850 |
font-size: clamp(0.76rem, 0.84vw, 0.92rem);
|
| 851 |
font-weight: 500;
|
| 852 |
line-height: 1.25;
|
|
|
|
| 884 |
padding: 0.45rem 0.72rem;
|
| 885 |
border: 1px solid rgba(148, 163, 184, 0.30);
|
| 886 |
border-radius: 0.5rem;
|
| 887 |
+
background: #dbeafe;
|
| 888 |
+
color: #1e3a5f !important;
|
| 889 |
text-decoration: none !important;
|
| 890 |
white-space: nowrap !important;
|
| 891 |
overflow-wrap: normal !important;
|
|
|
|
| 899 |
}
|
| 900 |
|
| 901 |
.sp-logout-link:hover {
|
| 902 |
+
border-color: #93c5fd;
|
| 903 |
+
background: #bfdbfe;
|
| 904 |
+
color: #1e3a5f !important;
|
| 905 |
}
|
| 906 |
|
| 907 |
.sp-logout-link:focus-visible {
|
| 908 |
+
outline: 2px solid #60a5fa;
|
| 909 |
outline-offset: 2px;
|
| 910 |
}
|
| 911 |
|