You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.6 KiB
85 lines
1.6 KiB
import env from '@/env/index.js'
|
|
const urlEnv = env === 'production' ? '' : `-${env}`
|
|
|
|
export const XAPPID = '503258978847966408'
|
|
|
|
// 统一支付接口
|
|
export const PAY_URL = `https://api-client-psc${urlEnv}.qniao.cn/payment-settlement-center/pay-for-service-account`
|
|
// 当前支付页面地址
|
|
export const VIP_URL = `https://shopkeeper${urlEnv}.qniao.cn/#/pages/vip-center/index`
|
|
/**
|
|
* 萤石云直播地址
|
|
* @param {string} accessToken 访问令牌
|
|
* @param {string} deviceSerial 设备序列号
|
|
* @param {string} channelNo 通道号
|
|
*/
|
|
export const YINGSHI_LIVE_URL = `https://open.ys7.com/ezopen/h5/live?autoplay=1&audio=1&hd=1&`
|
|
|
|
/**
|
|
* 账号类型
|
|
*/
|
|
export const accountType = {
|
|
WX: 1,
|
|
PHONE: 2,
|
|
EMAIL: 3,
|
|
APPLEID: 4,
|
|
CUSTOM: 5
|
|
}
|
|
|
|
/**
|
|
* 加密类型 1:md5加密 2:sha256加密
|
|
*/
|
|
export const encryptType = {
|
|
MD5: 1,
|
|
SHA256: 2
|
|
}
|
|
|
|
/**
|
|
* 是否加密 不加密:0 , 加密:1
|
|
*/
|
|
export const isEncrypt = {
|
|
NO: 0,
|
|
YES: 1
|
|
}
|
|
|
|
/**
|
|
* 文件类型 图片:1,视频:2
|
|
*/
|
|
export const fileType = {
|
|
IMG: 1,
|
|
VIDEO: 2
|
|
}
|
|
|
|
/**
|
|
* 上传地址
|
|
*/
|
|
export const uploadUrl = {
|
|
image: `https://api-client-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/image`,
|
|
file: `https://api-client-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/file`
|
|
}
|
|
/**
|
|
* 申请状态 1:已提交 2:已同意 3:已拒绝
|
|
*/
|
|
export const applyStatus = {
|
|
SUBMIT: 1,
|
|
AGREE: 2,
|
|
REJECT: 3
|
|
}
|
|
|
|
/**
|
|
* 验证码用途
|
|
*/
|
|
export const codePurpose = {
|
|
CERTIFICATION: 1,
|
|
RESET_LOGIN_PASSWORD: 2,
|
|
RESET_PHONE: 3,
|
|
BIND_BANK_CARD: 4,
|
|
RESET_CREDIT_PASSWORD: 5
|
|
}
|
|
/**
|
|
* 可验证账号类型
|
|
*/
|
|
export const verificationType = {
|
|
PHONE: 1,
|
|
EMAIL: 2
|
|
}
|