Commit 09e1077a authored by qinhaitao's avatar qinhaitao

feat: 🎸 mock环境 走vipmock配置

parent 9d6fc009
......@@ -3,12 +3,13 @@
import { getConfig } from '../../config/index'
/** @format */
// 测试环境 duib2账户mock数据
// 测试环境 duib2账户mock数据 或者本地
export const isUseVipMock = (context: IContext<IParams>, userNick: string) => {
const isTestEnv = context.env === 'test'
const isMockEnv = context.env === 'mock'
const isDuibaAccount = userNick.startsWith('duiba2')
return isTestEnv && isDuibaAccount
return (isTestEnv && isDuibaAccount) || isMockEnv
}
// 格式化Vip回调地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment