about.js 694 Bytes
'use strict';

const api = global.yoho.API;

class aboutModel extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    about(isApp) {
        return api.get('', {
            method: 'app.document.config'
        }, {
            cache: true,
            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 = aboutModel;