about.js 540 Bytes
'use strict';

const api = global.yoho.API;

const about = (isApp) => {
    console.log(isApp);
    return api.get('', {
        method: 'app.document.config'
    }, {
        code: 200
    }).then(result => {
        if (result && result.data) {
            result = {
                wxTitle: result.data.wechatAtten,
                wxTip: result.data.wechatAttenSub,
                wxCopy: result.data.wechatCopy,
                isApp: isApp
            };
        }
        return result;
    });
};

module.exports = {
    about
};