Showing
1 changed file
with
1 additions
and
2 deletions
@@ -5,7 +5,6 @@ | @@ -5,7 +5,6 @@ | ||
5 | */ | 5 | */ |
6 | 'use strict'; | 6 | 'use strict'; |
7 | 7 | ||
8 | -const _ = require('lodash'); | ||
9 | const mRoot = '../models'; | 8 | const mRoot = '../models'; |
10 | const typeLib = require('../../../config/type-lib'); | 9 | const typeLib = require('../../../config/type-lib'); |
11 | const IndexModel = require(`${mRoot}/index`); | 10 | const IndexModel = require(`${mRoot}/index`); |
@@ -206,7 +205,7 @@ const index = (req, res, next) => { | @@ -206,7 +205,7 @@ const index = (req, res, next) => { | ||
206 | let param = { | 205 | let param = { |
207 | uid: uid, | 206 | uid: uid, |
208 | udid: req.user.udid, | 207 | udid: req.user.udid, |
209 | - type: req.query.type || _.parseInt(stringProcess.paramsFilter(req.query.id)) || '0', | 208 | + type: stringProcess.paramsFilter(req.query.type || req.query.id) || '0', |
210 | gender: req.query.gender || req.query.channel && typeLib.gender[req.query.channel] || '1,3' | 209 | gender: req.query.gender || req.query.channel && typeLib.gender[req.query.channel] || '1,3' |
211 | }; | 210 | }; |
212 | 211 |
-
Please register or login to post a comment