Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
OF1706
8 years ago
Commit
79416dd8eb9e825d31d9fe309152a8bf6c5eb38c
1 parent
3c0a611f
suggestFooter
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
apps/common/controllers/suggestFeedBack.js
apps/common/models/suggestFeedBack.js
apps/common/controllers/suggestFeedBack.js
View file @
79416dd
...
...
@@ -18,7 +18,8 @@ const getFeedBack = (req, res, next) => {
let
solution
=
req
.
query
.
solution
||
0
;
if
(
!
_
.
isEmpty
(
feedbackId
)
||
!
_
.
isEmpty
(
questionId
)
||
!
_
.
isEmpty
(
answer
)
||
!
_
.
isEmpty
(
solution
))
{
suggestFeedBackModel
.
FeedBackApi
(
feedbackId
,
questionId
,
answer
,
solution
).
then
((
result
)
=>
{
suggestFeedBackModel
.
feedBackApi
(
feedbackId
,
questionId
,
answer
,
solution
).
then
((
result
)
=>
{
return
res
.
jsonp
({
code
:
result
.
code
,
...
...
apps/common/models/suggestFeedBack.js
View file @
79416dd
...
...
@@ -14,7 +14,7 @@ const config = global.yoho.config;
* @param uid
* @return string
*/
const
F
eedBackApi
=
(
feedbackId
,
questionId
,
answer
,
solution
)
=>
{
const
f
eedBackApi
=
(
feedbackId
,
questionId
,
answer
,
solution
)
=>
{
let
params
=
{
method
:
'open.feedback.submit'
,
feedback_id
:
feedbackId
,
...
...
@@ -27,5 +27,5 @@ const FeedBackApi = (feedbackId, questionId, answer, solution) => {
};
module
.
exports
=
{
F
eedBackApi
f
eedBackApi
};
...
...
Please
register
or
login
to post a comment