From d0c73edb9c1038da6fa0d76095fe8325268c4fb2 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 21 May 2025 14:42:56 +0800 Subject: [PATCH] package --- package.json | 1 - pnpm-lock.yaml | 16 ---------------- src/pages/tabbar/my.vue | 1 - src/sheep/utils/request.ts | 16 ++++++++-------- 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 465895b..61fac2f 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "@zebra-ui/swiper": "^2.2.8", "crypto-js": "^4.2.0", "dayjs": "^1.11.13", - "gdt-jsapi": "^1.9.51", "luch-request": "^3.1.1", "pinia": "^2.2.6", "qrcode": "^1.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a2a0a73..0b6dd02 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -65,9 +65,6 @@ importers: dayjs: specifier: ^1.11.13 version: 1.11.13 - gdt-jsapi: - specifier: ^1.9.51 - version: 1.9.51 luch-request: specifier: ^3.1.1 version: 3.1.1 @@ -1304,9 +1301,6 @@ packages: '@polka/url@1.0.0-next.28': resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} - '@remax/mini-types@0.1.0': - resolution: {integrity: sha512-bVDcbUrp6p0PZwfS0xGVQS6k9f8B35BtZaYt/W/IGKh7VALYQ+tS2KcytLRmIJ/Vmohaw5ikIRN89I+frPdh4g==} - '@rollup/pluginutils@5.1.4': resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==} engines: {node: '>=14.0.0'} @@ -2426,9 +2420,6 @@ packages: function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - gdt-jsapi@1.9.51: - resolution: {integrity: sha512-VN1iIK7kJU2g2oxY/n8waCREhWxcVwR8qHAE1keVnUJHI6mTdgTelICzq++niRRCaLqUVWC1pYvftEVgk4sq8A==} - generic-names@4.0.0: resolution: {integrity: sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A==} @@ -6021,8 +6012,6 @@ snapshots: '@polka/url@1.0.0-next.28': {} - '@remax/mini-types@0.1.0': {} - '@rollup/pluginutils@5.1.4(rollup@4.34.2)': dependencies: '@types/estree': 1.0.6 @@ -7275,11 +7264,6 @@ snapshots: function-bind@1.1.2: {} - gdt-jsapi@1.9.51: - dependencies: - '@babel/runtime': 7.26.7 - '@remax/mini-types': 0.1.0 - generic-names@4.0.0: dependencies: loader-utils: 3.3.1 diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index b6eb743..c1f3d31 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -61,7 +61,6 @@ import { getAppInfo } from "@@/utils/app" import { hooks, router, constant } from "@@/index" import { userApi } from "@@/api" import { isDevEnv } from "@/sheep/utils/app" -// import dd from "gdt-jsapi" const state = reactive<{ wallet: any[] diff --git a/src/sheep/utils/request.ts b/src/sheep/utils/request.ts index 7ea9932..8395988 100644 --- a/src/sheep/utils/request.ts +++ b/src/sheep/utils/request.ts @@ -78,15 +78,15 @@ async function handleShLogin(): Promise { try { uni.showLoading({ title: "登录中...", mask: true }) - // const userInfo = await (window as any).CP2.getUserInfo() - // if (userInfo.code == 0 || !userInfo.data.accountId || !userInfo.data.sessionId) { - // uni.showToast({ title: "获取诗画用户信息失败", icon: "none" }) - // return false - // } + const userInfo = await (window as any).CP2.getUserInfo() + if (userInfo.code == 0 || !userInfo.data.accountId || !userInfo.data.sessionId) { + uni.showToast({ title: "获取诗画用户信息失败", icon: "none" }) + return false + } - // const { accountId, sessionId } = userInfo.data - // const response = await userApi.authsh({ accountId, sessionId }) - const response = await userApi.authsh({ accountId: "67e790d6a95d5a7b507e53dd", sessionId: "68215b03a95d5a4899d20cb4" }) // 测试 + const { accountId, sessionId } = userInfo.data + const response = await userApi.authsh({ accountId, sessionId }) + // const response = await userApi.authsh({ accountId: "67e790d6a95d5a7b507e53dd", sessionId: "68215b03a95d5a4899d20cb4" }) // 测试 if (response.code == 0) { uni.setStorageSync(TOKEN_KEY, { accessToken: response.data.accessToken })