detail-hotarea-api.js 443 Bytes
/**
 * Created by TaoHuang on 2016/6/13.
 */

const library = '../../../library';
const API = require(`${library}/api`).API;
const sign = require(`${library}/sign`);
const log = require(`${library}/logger`);

const api = new API();

/**
 * 获取商品的热区
 */
module.exports.indexAsync = (pid) => {
    return api.get('', sign.apiSign({
        method: 'web.productCollocation.list',
        product_id: pid
    })).catch(log.error);
};