This commit is contained in:
parent
4e52908cfc
commit
b30dcfbafb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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] || ''
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export default function WeixinQrImage ({ url }: { url: string }) {
|
|||
) : (
|
||||
<View className='contact-qrcode__image' />
|
||||
)}
|
||||
<Text className='contact-qrcode__hint'>长按/截图扫一扫...</Text>
|
||||
<Text className='contact-qrcode__hint'>长按/截图扫一扫添加客服微信</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue