1 Star 0 Fork 0

cupid_ly / live2d_api_java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

live2d_api JAVA

Live2D API

  详情请见原作者的github

开发原因

  原版使用php开发,本人没怎么用过php,部署的时候一脸懵逼,考虑到肯定会有和我一样的人存在,所以参考原php版本,用 java 撸了一份。

本项目所用环境

  • spring boot 2.1.3
  • java version "1.8.0_121"
  • maven Apache Maven 3.5.3
  • 开发ide sts-3.9.5

与原版功能区别

  • 阉割掉了add 接口
  • 部分资源获取逻辑变更
  • 新增了一些模型

试用接口

接口用法

   与原版一致:无需修改原版的js

  • /get/?id=1-23 获取 分组 1 的 第 23 号 皮肤
  • /rand/?id=1 根据 上一分组 随机切换
  • /switch/?id=1 根据 上一分组 顺序切换
  • /rand_textures/?id=1-23 根据 上一皮肤 随机切换 同分组其他皮肤
  • /switch_textures/?id=1-23 根据 上一皮肤 顺序切换 同分组其他皮肤

CDN

  本案例的资源访问没有使用cdn,需要用cdn的请自己用nginx。

无关的话

   之前没有接触过php,所以看原版翻译的时候内心有无数草泥马,花了1天半的时间肝了这个初版。之后有空应该会更新优化。

参考资料

版权声明

API 内所有模型 版权均属于原作者,仅供研究学习,不得用于商业用途

MIT © WhiteMagic2014

MIT License Copyright (c) 2019 magic chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
JavaScript 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/liuyu_cupid/live2d_api_java.git
git@gitee.com:liuyu_cupid/live2d_api_java.git
liuyu_cupid
live2d_api_java
live2d_api_java
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891