Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郭成尧
2016-07-28 18:26:50 +0800
Commit
648abc25db401d954dcddc454461c32575ccc0ce
2 parents
38a2aeb5
a35c4b33
Merge remote-tracking branch 'remotes/origin/develop' into feature/brand
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
doraemon/middleware/set-yoho-data.js
public/js/yoho.js
doraemon/middleware/set-yoho-data.js
View file @
648abc2
...
...
@@ -21,7 +21,7 @@ module.exports = () => {
yoho
.
channel
=
channel
;
// 判断请求是否来自app
yoho
.
isApp
=
req
.
query
.
app_version
||
req
.
query
.
appVersion
;
yoho
.
isApp
=
/yh_blk/i
.
test
(
req
.
get
(
'Referer'
))
;
Object
.
assign
(
res
.
locals
,
yoho
);
Object
.
assign
(
req
.
yoho
,
yoho
);
...
...
public/js/yoho.js
View file @
648abc2
...
...
@@ -21,7 +21,7 @@ const yoho = {
/**
* 判断是否是 APP
*/
isApp
:
/yh_blk/i
.
test
(
(
navigator
.
userAgent
||
''
).
toLowerCase
()
),
isApp
:
/yh_blk/i
.
test
(
navigator
.
userAgent
||
''
),
/**
* JS 与 APP 共享的对象
...
...
Please
register
or
login
to post a comment