修复错误

This commit is contained in:
al 2024-07-24 13:32:23 +08:00
parent 56d50eb095
commit 8a0d02179a
4 changed files with 4 additions and 40 deletions

View File

@ -16,16 +16,7 @@ export default function BillDetail({ params }) {
let currentBaseCode = searchParams.get("base") let currentBaseCode = searchParams.get("base")
if(currentBase){ if(currentBase){
let currentBase = decodeURIComponent(currentBaseCode); let currentBase = decodeURIComponent(currentBaseCode);
searchParamsObj={}; searchParamsObj={...currentBase};
searchParamsObj.b_mid=currentBase.get("b_mid");
searchParamsObj.b_did=currentBase.get("b_did");
searchParamsObj.b_ver=currentBase.get("b_ver");
searchParamsObj.b_dt=currentBase.get("b_dt");
searchParamsObj.b_model=currentBase.get("b_model");
searchParamsObj.b_nt=currentBase.get("b_nt");
searchParamsObj.b_token=currentBase.get("b_token");
searchParamsObj.b_ch=currentBase.get("b_ch");
searchParamsObj.b_ts=currentBase.get("b_ts");
} }
return searchParamsObj || webviewBase; return searchParamsObj || webviewBase;
},[searchParams]); },[searchParams]);

View File

@ -49,16 +49,7 @@ export default function Pay() {
let currentBaseCode = searchParams.get("base") let currentBaseCode = searchParams.get("base")
if(currentBase){ if(currentBase){
let currentBase = decodeURIComponent(currentBaseCode); let currentBase = decodeURIComponent(currentBaseCode);
searchParamsObj={}; searchParamsObj={...currentBase};
searchParamsObj.b_mid=currentBase.get("b_mid");
searchParamsObj.b_did=currentBase.get("b_did");
searchParamsObj.b_ver=currentBase.get("b_ver");
searchParamsObj.b_dt=currentBase.get("b_dt");
searchParamsObj.b_model=currentBase.get("b_model");
searchParamsObj.b_nt=currentBase.get("b_nt");
searchParamsObj.b_token=currentBase.get("b_token");
searchParamsObj.b_ch=currentBase.get("b_ch");
searchParamsObj.b_ts=currentBase.get("b_ts");
} }
return searchParamsObj || webviewBase; return searchParamsObj || webviewBase;
},[searchParams]); },[searchParams]);

View File

@ -29,16 +29,7 @@ export default function Vip() {
let currentBaseCode = searchParams.get("base") let currentBaseCode = searchParams.get("base")
if(currentBase){ if(currentBase){
let currentBase = decodeURIComponent(currentBaseCode); let currentBase = decodeURIComponent(currentBaseCode);
searchParamsObj={}; searchParamsObj={...currentBase};
searchParamsObj.b_mid=currentBase.get("b_mid");
searchParamsObj.b_did=currentBase.get("b_did");
searchParamsObj.b_ver=currentBase.get("b_ver");
searchParamsObj.b_dt=currentBase.get("b_dt");
searchParamsObj.b_model=currentBase.get("b_model");
searchParamsObj.b_nt=currentBase.get("b_nt");
searchParamsObj.b_token=currentBase.get("b_token");
searchParamsObj.b_ch=currentBase.get("b_ch");
searchParamsObj.b_ts=currentBase.get("b_ts");
} }
return searchParamsObj || webviewBase; return searchParamsObj || webviewBase;
},[searchParams]); },[searchParams]);

View File

@ -21,16 +21,7 @@ export default function Pay({ params }) {
let currentBaseCode = searchParams.get("base") let currentBaseCode = searchParams.get("base")
if(currentBase){ if(currentBase){
let currentBase = decodeURIComponent(currentBaseCode); let currentBase = decodeURIComponent(currentBaseCode);
searchParamsObj={}; searchParamsObj={...currentBase};
searchParamsObj.b_mid=currentBase.get("b_mid");
searchParamsObj.b_did=currentBase.get("b_did");
searchParamsObj.b_ver=currentBase.get("b_ver");
searchParamsObj.b_dt=currentBase.get("b_dt");
searchParamsObj.b_model=currentBase.get("b_model");
searchParamsObj.b_nt=currentBase.get("b_nt");
searchParamsObj.b_token=currentBase.get("b_token");
searchParamsObj.b_ch=currentBase.get("b_ch");
searchParamsObj.b_ts=currentBase.get("b_ts");
} }
return searchParamsObj || webviewBase; return searchParamsObj || webviewBase;
},[searchParams]); },[searchParams]);