Authored by 黄涛

fix path

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 const mRoot = '../models'; 9 const mRoot = '../models';
10 10
11 // 商品详情model 11 // 商品详情model
12 -const itemModel = require(`${mRoot}/ItemModel`); 12 +const detailAPI = require(`${mRoot}/detail-api`);
13 const moment = require('moment'); 13 const moment = require('moment');
14 14
15 /* COOKIE标识访问的是男生频道 */ 15 /* COOKIE标识访问的是男生频道 */
@@ -66,7 +66,7 @@ exports.index = (req,res, next) => { @@ -66,7 +66,7 @@ exports.index = (req,res, next) => {
66 66
67 let gender = getGenderByCookie(req); 67 let gender = getGenderByCookie(req);
68 68
69 - itemModel({ 69 + detailAPI({
70 id: pid, 70 id: pid,
71 ua: req.get('user-agent') || '', 71 ua: req.get('user-agent') || '',
72 channel: channel, 72 channel: channel,