Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
09e1077a
Commit
09e1077a
authored
Sep 23, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
mock环境 走vipmock配置
parent
9d6fc009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vip.ts
v2.0/src/utils/package/vip.ts
+3
-2
No files found.
v2.0/src/utils/package/vip.ts
View file @
09e1077a
...
...
@@ -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回调地址
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment