|
|
const _ = require('lodash');
|
|
|
const haveGainModel = require('../models/have-gain');
|
|
|
const headerModel = require('../../../doraemon/models/header');
|
|
|
|
...
|
...
|
@@ -148,6 +149,10 @@ class HaveGain { |
|
|
|
|
|
body.socialMediaList = JSON.parse(body.socialMediaList || '[]', true);
|
|
|
|
|
|
if (req.yoho.isMiniApp) {
|
|
|
uid.appVersion = _.get(global, 'yoho.config.appVersion');
|
|
|
}
|
|
|
|
|
|
return req.ctx(haveGainModel).submitApply(Object.assign({uid}, body)).then(result => {
|
|
|
return res.json(result);
|
|
|
}).catch(next);
|
...
|
...
|
|