Giter Club home page Giter Club logo

doubanyearprogress's Issues

豆瓣 API 更新导致无法登录

{
  msg: 'invalid_device_id',
  code: 9000,
  request: 'POST /auth2/token',
  localized_message: '当前版本过低,为保障帐号安全请更新后再试',
  extra: {}
}

yearEnd计算有误

function generateText () {
    const now = moment().tz('Asia/Shanghai');
    const yearStart = moment(now).startOf('year');
    const yearEnd = moment(now).add(1, 'year');
    const progress = Math.round(1000 * now.diff(yearStart) / yearEnd.diff(yearStart)) / 10;
    let text = '';
    for (let i = 5; i <= 100; i += 5) {
        text += i <= progress ? '▓' : '░';
    }
    text += ' ' + progress + '%';
    text += ' #' + now.get('year') + '#'
    return text;
}

key 和 secret 问题

您好,我看到配置文件里有

        key: '',
        secret: '',

这两项。
我也看到消息说 2015 年后豆瓣关闭了个人开发者的申请,而您的 YearProgerss 是 2017 年才创建。
我也想做一个试试,所以想请教下您这个 key 验证是怎么搞到的?
:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.