...
|
...
|
@@ -30,7 +30,7 @@ exports.integralCharts = (req, res, next) => { |
|
|
exports.familyVip = (req, res, next) => {
|
|
|
let udid = req.sessionID || 'yoho';
|
|
|
let uid = req.user.uid;
|
|
|
let yohoApp = req.yoho.isApp && !req.yoho.isMarsApp;
|
|
|
let yohoApp = req.yoho.isYohoApp;
|
|
|
let marsApp = req.yoho.isMarsApp;
|
|
|
|
|
|
req.ctx(family).familyVip(udid, uid, yohoApp, marsApp).then(result => {
|
...
|
...
|
@@ -40,13 +40,13 @@ exports.familyVip = (req, res, next) => { |
|
|
|
|
|
exports.downLoadData = (req, res, next) => {
|
|
|
let codeArr = req.query.codeArr;
|
|
|
let yohoApp = req.yoho.isApp && !req.yoho.isMarsApp;
|
|
|
let isApp = req.yoho.isApp;
|
|
|
|
|
|
if (!codeArr) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
req.ctx(family).downLoadData(codeArr, yohoApp).then(result => {
|
|
|
req.ctx(family).downLoadData(codeArr, isApp).then(result => {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|