Explorar o código

捐款选项展示

wyling007 %!s(int64=3) %!d(string=hai) anos
pai
achega
e5e08dd01f
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/hooks/index.ts

+ 6 - 1
src/hooks/index.ts

@@ -34,7 +34,12 @@ export const useExpireTime = () => {
 export const useOpenIdIsZhangbing = () => {
   const store = useStore();
   const openid = computed(() => store.getters.getUserData.openid);
-  const isZhangbing = openid.value === "ovKTX50v7OAEPI_ERofpUvrNQCJU";
+  const userOpenidArr = [
+    "ovKTX50v7OAEPI_ERofpUvrNQCJU",
+    "ovKTX5-FKLF6_sgTtCIXpG_lz3PY",
+    "ovKTX5zYvp9OXE43ADwLa1RHna0g",
+  ];
+  const isZhangbing = userOpenidArr.includes(openid.value);
   return {
     isZhangbing,
   };