Authored by 郭成尧

share-get-content

... ... @@ -6,7 +6,7 @@
const mRoot = '../models';
const share = require(`${mRoot}/share`);
exports.getShareContent = (req, res ,next) => {
exports.getShareContent = (req, res, next) => {
if (!req.query.shareId) {
return res.json({
code: 400,
... ... @@ -19,4 +19,4 @@ exports.getShareContent = (req, res ,next) => {
}).then(result => {
res.json(result);
}).catch(next);
};
\ No newline at end of file
};
... ...
... ... @@ -18,4 +18,4 @@ const getShareContent = (params) => {
module.exports = {
getShareContent
};
\ No newline at end of file
};
... ...
... ... @@ -82,7 +82,7 @@ module.exports = function(data) {
data: {
shareId: qs.shareId
},
success: function (res) {
success: function(res) {
if (res && res.code === 200 && res.data) {
shareData.desc = res.data.content;
shareData.imgUrl = res.data.pic;
... ...