卢春龙
2026-08-17 f525b6c3cc105bd1a997d893937689bebcc9570d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
// 公参
//@ts-ignore
export const _XP_SECRET = XP_SECRET;
//@ts-ignore
export const APPID = PLATFORM_APPID;
//@ts-ignore
export const _XP_APPID = XP_APPID;
//@ts-ignore
export const _GIO_CONFIG = GIO_CONFIG;
 
 
 
 
export const PUBLIC_HEADER = {
  'XP-Uid': '1', // 登录后属性
  'Content-Type': 'application/json', // 数据格式,固定
  'XP-Authorization': '', // 计算属性
  'XP-Encryption-Type': '3',  // 加密方式,对应base64
  'XP-Client-Type': '4',  // 客户端类型,微信小程序
  'XP-Appid': _XP_APPID, // 用户中心给的appid
  'XP-Client': '',  // 计算属性
  'XP-Client-Encoding': 'None', // 固定值
  'XP-Nonce': '', // 时间戳+自增,唯一性
  'XP-Signature': '', // 计算属性
}
 
export const AppidKeyNameMap = {
  weapp: 'wxAppId',
};