From dfa8d27f95d9b42be10a2633e683dee947c2ec62 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 3 Jan 2025 10:52:53 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20WA=20=E5=8F=B7=E7=A0=81=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E4=BF=9D=E7=95=99=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/AuthStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/AuthStore.js b/src/stores/AuthStore.js index 06650d6..18c44d0 100644 --- a/src/stores/AuthStore.js +++ b/src/stores/AuthStore.js @@ -188,7 +188,7 @@ const useAuthStore = create(devtools((set, get) => ({ const { loginUser, saveUserSession } = get() const postWABAUrl = `${API_HOST}/v2/set_whatsapp_info` - const params = {opi_sn: userId, whatsapp_waba: whatsAppBusiness, whatsapp_wa: whatsAppNo}; + const params = {opi_sn: userId, whatsapp_waba: whatsAppBusiness, whatsapp_wa: whatsAppNo.replace(/\D/g, '')}; return fetchJSON(postWABAUrl, params) .then(json => {