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
ccbikai(👎🏻🍜)
8 years ago
Commit
d85eeba2ad283d0f7c857fe05010b012bcd1324c
1 parent
b1754fa0
调用接口传入 UID
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
apps/activity/controllers/feature.js
apps/activity/models/feature.js
apps/activity/controllers/feature.js
View file @
d85eeba
...
...
@@ -4,7 +4,8 @@ const model = require('../models/feature');
exports
.
index
=
function
(
req
,
res
,
next
)
{
model
.
index
({
code
:
req
.
params
.
code
,
type
:
req
.
query
.
type
type
:
req
.
query
.
type
,
user_id
:
req
.
user
.
uid
||
0
}).
then
((
result
)
=>
{
if
(
!
result
)
{
return
next
();
...
...
apps/activity/models/feature.js
View file @
d85eeba
...
...
@@ -45,12 +45,14 @@ module.exports = {
if
(
params
.
type
===
'preview'
)
{
// 开发/预览模式
data
=
yield
api
.
get
(
''
,
{
method
:
'app.activity.template.ignoreCache'
,
activity_id
:
params
.
code
activity_id
:
params
.
code
,
user_id
:
15125606
||
params
.
user_id
});
}
else
{
data
=
yield
api
.
get
(
''
,
{
// 生产模式
method
:
'app.activity.template'
,
activity_id
:
params
.
code
activity_id
:
params
.
code
,
user_id
:
15125606
||
params
.
user_id
},
{
cache
:
true
});
...
...
Please
register
or
login
to post a comment