Commit b17bbe73 authored by qinhaitao's avatar qinhaitao

fix: 🐛 userMock 环境判断

parent 7a94f72d
......@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.isUseVipMock = void 0;
// 测试环境 duib2账户mock数据
exports.isUseVipMock = function (context, userNick) {
var isTestEnv = context.env;
var isTestEnv = context.env === 'test';
var isDuibaAccount = userNick.startsWith('duiba2');
return isTestEnv && isDuibaAccount;
};
......
{"version":3,"file":"isUseVipMock.js","sourceRoot":"","sources":["../../../src/utils/package/isUseVipMock.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAAgB,EAAE,QAAgB;IAC7D,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAA;IAC7B,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA"}
\ No newline at end of file
{"version":3,"file":"isUseVipMock.js","sourceRoot":"","sources":["../../../src/utils/package/isUseVipMock.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAAgB,EAAE,QAAgB;IAC7D,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA"}
\ No newline at end of file
......@@ -2,7 +2,7 @@
// 测试环境 duib2账户mock数据
export const isUseVipMock = (context: Context, userNick: string) => {
const isTestEnv = context.env
const isTestEnv = context.env === 'test'
const isDuibaAccount = userNick.startsWith('duiba2')
return isTestEnv && isDuibaAccount
......
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