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
Email Patches
Plain Diff
Browse Files
Authored by
沈志敏
9 years ago
Commit
964b51aa14bb1694020e5c38a4c2476146fb6f9c
1 parent
1a389a0d
删除默认uid
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
apps/home/controllers/favorite.js
apps/home/controllers/index.js
apps/home/controllers/favorite.js
View file @
964b51a
...
...
@@ -23,7 +23,7 @@ const fav = {
}
},
favpaging
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
const
tab
=
req
.
query
.
tab
;
const
page
=
req
.
query
.
page
;
...
...
@@ -40,7 +40,7 @@ const fav = {
}
},
deletefav
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
const
favId
=
req
.
body
.
favId
;
const
type
=
req
.
body
.
type
;
...
...
apps/home/controllers/index.js
View file @
964b51a
...
...
@@ -13,7 +13,7 @@ const helpers = global.yoho.helpers;
*/
const
component
=
{
index
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
if
(
!
uid
&&
req
.
xhr
)
{
return
res
.
json
({
...
...
@@ -38,7 +38,7 @@ const component = {
}).
catch
(
next
);
},
mydetails
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
homeModel
.
getUserProfileData
(
uid
).
then
(
data
=>
{
data
=
data
||
{};
...
...
@@ -62,7 +62,7 @@ const component = {
},
saveMydetails
:
(
req
,
res
,
next
)
=>
{
var
params
=
{
uid
:
req
.
user
.
uid
||
14459668
uid
:
req
.
user
.
uid
};
if
(
req
.
body
.
nickname
!==
undefined
)
{
...
...
@@ -121,7 +121,6 @@ const component = {
},
saveFeedback
:
(
req
,
res
,
next
)
=>
{
let
saveFeedbackPara
=
{
uid
:
'14459668'
,
content
:
req
.
body
.
content
,
suggest_type
:
2
};
...
...
Please
register
or
login
to post a comment