...
|
...
|
@@ -5,7 +5,6 @@ |
|
|
*/
|
|
|
'use strict';
|
|
|
|
|
|
const _ = require('lodash');
|
|
|
const mRoot = '../models';
|
|
|
const typeLib = require('../../../config/type-lib');
|
|
|
const IndexModel = require(`${mRoot}/index`);
|
...
|
...
|
@@ -206,7 +205,7 @@ const index = (req, res, next) => { |
|
|
let param = {
|
|
|
uid: uid,
|
|
|
udid: req.user.udid,
|
|
|
type: req.query.type || _.parseInt(stringProcess.paramsFilter(req.query.id)) || '0',
|
|
|
type: stringProcess.paramsFilter(req.query.type || req.query.id) || '0',
|
|
|
gender: req.query.gender || req.query.channel && typeLib.gender[req.query.channel] || '1,3'
|
|
|
};
|
|
|
|
...
|
...
|
|