V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
duoduoeeee

[半成品] 拿 @50vip 的 badge 改了改做了个支持网易云、B 站和知乎的 badge service

  •  
  •   duoduoeeee · Dec 16, 2017 · 2781 views
    This topic created in 3060 days ago, the information mentioned may be changed or developed.

    https://github.com/duoduoeeee/genuine-shields-human

    这个项目的目标是制作一个简单易部署,供普通人使用的动态 badge 服务。

    放进你 PHP 服务器的 webroot 就行。

    目前有个问题,对网易云 API 的解析不太正常,好像是把 array 认成了 object ……所以网易的没法显示。知乎的还没加进去……不过 API 部分已经搭好了。

    (居然在 V 站找到了原作者……) @50vip

    有没人帮忙看看 bug。。。。(逃

    Supplement 1  ·  Dec 17, 2017

    今天又看了看代码……php非常扯地把网易api里的object认成了string。。。。。。。。。。。。。。

    有没人帮忙看下bug啊

    Supplement 2  ·  Dec 18, 2017

    昨晚上发现 通过直接传入json变量的方法就能解析成功,但是通过get_file_contents函数就不行

    困惑

    5 replies    2017-12-20 00:29:49 +08:00
    Tiakon
        1
    Tiakon  
       Dec 17, 2017
    badge 服务是干什么用的?
    duoduoeeee
        2
    duoduoeeee  
    OP
       Dec 17, 2017   ❤️ 1
    @Tiakon 就你经常在 GitHub 看见的那种小徽章 什么 npm travis gitter 之类的 能动态更新上面数据的矢量图
    duoduoeeee
        3
    duoduoeeee  
    OP
       Dec 17, 2017
    50vip
        4
    50vip  
       Dec 19, 2017
    咋不给个 pr ?
    duoduoeeee
        5
    duoduoeeee  
    OP
       Dec 20, 2017
    @50vip 用途不一样吧。我这里只有网易和 B 站的 如果是开发者的话可能用不上这些 所以就新做一个 repository。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2469 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 02:25 · PVG 10:25 · LAX 19:25 · JFK 22:25
    ♥ Do have faith in what you're doing.