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
郭成尧
7 years ago
Commit
ca05ab55cf173066f8dd785894fc45f33db55704
1 parent
c0f219b6
share_id
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
apps/activity/models/share.js
apps/activity/models/share.js
View file @
ca05ab5
'use strict'
;
const
_
=
require
(
'lodash'
);
class
shareModel
extends
global
.
yoho
.
BaseModel
{
constructor
(
ctx
)
{
...
...
@@ -10,9 +11,19 @@ class shareModel extends global.yoho.BaseModel {
* @returns {*|Promise.<TResult>}
*/
getShareContent
(
params
)
{
let
shareIdInt
=
_
.
parseInt
(
params
.
shareId
);
if
(
shareIdInt
)
{
params
.
shareId
=
_
.
toString
(
shareIdInt
);
}
else
{
return
Promise
.
resolve
({});
}
return
this
.
get
({
url
:
'operations/api/v5/webshare/getShare'
,
data
:
{
share_id
:
params
.
shareId
},
data
:
{
share_id
:
params
.
shareId
},
api
:
global
.
yoho
.
ServiceAPI
,
}).
then
(
result
=>
{
return
result
;
...
...
Please
register
or
login
to post a comment