...
|
...
|
@@ -9,6 +9,7 @@ const installmentModel = require('../models/installment'); |
|
|
const _ = require('lodash');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
const logger = global.yoho.logger;
|
|
|
const yasProcess = require(`${global.utils}/yas-process`);
|
|
|
|
|
|
// 服务器报错页面
|
|
|
const _serverCrash = (res, params, err, next) => {
|
...
|
...
|
@@ -64,6 +65,16 @@ const index = (req, res, next) => { |
|
|
})
|
|
|
]).then((result) => {
|
|
|
|
|
|
if (req.yoho.isApp) {
|
|
|
_.forEach(result[1], goods => {
|
|
|
goods.url = yasProcess.addParamsToGoodsHref({
|
|
|
href: goods.url,
|
|
|
fromPageName: yasProcess.getPname(req),
|
|
|
fromPageParam: req.originalUrl
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// openStatus:0 未申请 1审核中 2已开通 3 审核未通过
|
|
|
let openStatus = result[0];
|
|
|
let installmentOnly = {
|
...
|
...
|
|