|
// 公参
|
//@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',
|
};
|