Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
Email Patches
Plain Diff
Browse Files
Authored by
张丽霞
2016-06-27 13:57:31 +0800
Commit
ff4afc9f316c4acc41cfa6ce73de77ebfcfc6e7d
1 parent
ce0893ca
线上优惠券取title的crash,删除重复文件
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
apps/activity/models/coupon.js
utils/cookie.js
apps/activity/models/coupon.js
View file @
ff4afc9
...
...
@@ -41,7 +41,6 @@ const getUserStatus = (param) => {
var
dest
=
{};
dest
.
code
=
param
.
code
;
dest
.
title
=
param
.
data
.
h5Title
;
dest
.
returnCode
=
param
.
data
.
returnCode
;
dest
.
mobile
=
param
.
data
.
mobile
;
if
(
param
.
data
.
returnCode
===
0
)
{
...
...
utils/cookie.js
deleted
100644 → 0
View file @
ce0893c
// 获取 UID
exports
.
getUid
=
(
req
)
=>
{
var
_uid
=
0
,
cookie
=
req
.
cookies
.
_UID
,
cookieList
;
if
(
req
.
isApp
)
{
return
req
.
query
.
uid
||
0
;
}
if
(
cookie
)
{
cookieList
=
cookie
.
split
(
'::'
);
if
(
cookieList
[
1
]
&&
!
isNaN
(
cookieList
[
1
]))
{
_uid
=
cookieList
[
1
];
}
}
return
_uid
;
};
Please
register
or
login
to post a comment