• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • doraemon
  • models
  • about.js
  • lettle-bug
    36b4bed2
    by 郭成尧
    2017-05-09 11:32:46 +0800  
    Browse Files
about.js 537 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
'use strict';

const api = global.yoho.API;

const 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 = {
    about
};