diff --git a/.env.production b/.env.production index c83f994..bd14bb7 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ -TARO_APP_API_ORIGIN=https://nb.zuom8.cn +TARO_APP_API_ORIGIN=https://corp.batiao8.com TARO_APP_API_HOST=nb.zuom8.cn TARO_APP_TIANDITU_KEY=ad8b251afd667ea8b8bc6f33df2ce198 diff --git a/AGENTS.md b/AGENTS.md index 63ecd6d..28395f1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,7 +34,7 @@ Native mini-program for map-label progress query. Pages in `src/app.config.ts`: - API origin comes from `TARO_APP_API_ORIGIN`: `.env.development` → `http://corp-test.batiao8.com`, `.env.production` → `https://nb.zuom8.cn`. - `x-host` prefers the H5 jump `host`, then `TARO_APP_API_HOST`. - Map reverse geocode uses `TARO_APP_TIANDITU_KEY` against `api.tianditu.gov.cn` (add this request domain in WeChat admin). -- Missing launch query fields fall back to `DEFAULT_LAUNCH_SCHEME` in `src/lib/launch.ts` (`scene=/h/KZ9Q`, `host=nb.batiao8.com`, `package=10044`, `phone=13800138000`). +- Missing launch query fields fall back to `DEFAULT_LAUNCH_SCHEME` in `src/lib/launch.ts` (`scene=/h/KZ9Q`, `host=nb.batiao8.com`, `package=10044`, `phone=17316703138`). - No token: `GET /api/user/config` then keep the returned guest token. Then `GET /api/h5/corp` for package/config. - Shared client: `src/lib/request.ts` (same MD5 sign + AES decrypt as H5). Platform header is `wx-mp`. diff --git a/src/lib/launch.test.ts b/src/lib/launch.test.ts index e4bfb5b..a3c8b3e 100644 --- a/src/lib/launch.test.ts +++ b/src/lib/launch.test.ts @@ -15,7 +15,7 @@ describe('parseMiniProgramScheme', () => { token: '6224a1fe-d88c-443c-8972-e6a0942d17fd', host: 'nb.batiao8.com', package: '10044', - phone: '13800138000', + phone: '17316703138', }) }) }) @@ -72,7 +72,7 @@ describe('resolveLaunchQuery', () => { linkId: 'KZ9Q', shareId: '', prevId: '', - phone: '13800138000', + phone: '17316703138', }) }) @@ -96,7 +96,7 @@ describe('resolveLaunchQuery', () => { linkId: '', shareId: 'SHARE1', prevId: '', - phone: '13800138000', + phone: '17316703138', }) }) }) diff --git a/src/lib/launch.ts b/src/lib/launch.ts index 921cc2c..98c1185 100644 --- a/src/lib/launch.ts +++ b/src/lib/launch.ts @@ -10,7 +10,7 @@ export type LaunchQuery = { } export const DEFAULT_LAUNCH_SCHEME = - 'weixin://dl/business/?appid=wx6d4f6f29c41aff93&path=pages/index/index&query=scene%3D%2Fh%2FKZ9Q%26token%3D6224a1fe-d88c-443c-8972-e6a0942d17fd%26host%3Dnb.batiao8.com%26package%3D10044%26phone%3D13800138000' + 'weixin://dl/business/?appid=wx6d4f6f29c41aff93&path=pages/index/index&query=scene%3D%2Fh%2FKZ9Q%26token%3D6224a1fe-d88c-443c-8972-e6a0942d17fd%26host%3Dnb.batiao8.com%26package%3D10044%26phone%3D17316703138' export function parseMiniProgramScheme (scheme: string) { const search = scheme.split('?')[1] || '' diff --git a/src/pages/index/weixin-qr.tsx b/src/pages/index/weixin-qr.tsx index d39a078..2de7bbb 100644 --- a/src/pages/index/weixin-qr.tsx +++ b/src/pages/index/weixin-qr.tsx @@ -74,7 +74,7 @@ export default function WeixinQrImage ({ url }: { url: string }) { ) : ( )} - 长按/截图扫一扫... + 长按/截图扫一扫添加客服微信 ) }