pay.js 615 Bytes
/**
 * 支付成功页
 * @author: jing.li<jing.li@yoho.cn>
 * @date: 2016/10/25
 */

'use strict';

const serviceAPI = global.yoho.ServiceAPI;

// 资源位
const getPayCod = (contentCode) => {
    return serviceAPI.get('operations/api/v5/resource/get', {
        content_code: contentCode
    }).then((result) => {

    	let resu = {
    		banner: []
    	};

        if (result && result.code === 200) {

            resu.banner = result.data;

        } else {
            logger.error('banner is not 200');
            resu = {};
        }

        return resu;
    });
};

module.exports = {
    getPayCod
};