Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
6 years ago
Commit
790e8399c3ce1d73b986bddd96d52a37086737e7
1 parent
a764e7c5
commit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
config/common.js
utils/check-params.js
config/common.js
View file @
790e839
...
...
@@ -32,7 +32,7 @@ module.exports = {
app
:
'h5'
,
appVersion
:
'6.6.0'
,
// 调用api的版本
appName
:
'yohoapp-node'
,
port
:
600
3
,
port
:
600
1
,
siteUrl
:
'//m.yohobuy.com'
,
assetUrl
:
'//localhost:5001/yohoapp-node/'
,
testCode
:
'yoho4946abcdef#$%&!@'
,
...
...
utils/check-params.js
View file @
790e839
...
...
@@ -21,6 +21,11 @@ const assetType = (value, type) => {
if
(
!
valid
&&
t
===
'object'
)
{
valid
=
value
instanceof
type
;
}
if
(
!
valid
&&
expectedType
.
toLowerCase
()
===
'number'
)
{
const
parseNumber
=
parseInt
(
value
,
10
);
valid
=
parseNumber
||
parseNumber
===
0
;
}
}
else
if
(
expectedType
===
'Object'
)
{
valid
=
value
.
toString
()
===
'[object Object]'
;
}
else
if
(
expectedType
===
'Array'
)
{
...
...
Please
register
or
login
to post a comment