Merge branch 'master' of github.com:printempw/blessing-skin-server

This commit is contained in:
printempw 2017-02-03 14:26:14 +08:00
commit 5db84529de
3 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,8 @@ class SkinlibController extends Controller
if ($type == "steve" || $type == "alex") {
if ($ratio != 2 && $ratio != 1)
return json(trans('skinlib.upload.invalid-size', ['type' => trans('general.skin'), 'width' => $size[0], 'height' => $size[1]]), 1);
if ($size[0] % 64 != 0 || $size[1] % 32 != 0)
return json(trans('skinlib.upload.invalid-hd-skin', ['type' => trans('general.skin'), 'width' => $size[0], 'height' => $size[1]]), 1);
} elseif ($type == "cape") {
if ($ratio != 2)
return json(trans('skinlib.upload.invalid-size', ['type' => trans('general.cape'), 'width' => $size[0], 'height' => $size[1]]), 1);

View File

@ -74,6 +74,7 @@ upload:
type-error: Incorrect mime type of uploaded file.
invalid-size: Invalid :type file (Width :width, Height :height)
invalid-hd-skin: Invalid HD skin (Width and height can not be devided by 32)
lack-score: You don't have enough score to upload this texture.
repeated: The texture is already uploaded by someone else. You can add it to your closet directly.

View File

@ -73,6 +73,7 @@ upload:
type-error: 文件格式不对哦
invalid-size: 不是有效的 :type 文件(宽 :width高 :height
invalid-hd-skin: 不是有效的高清皮肤(宽和高不是 32 的整数倍)
lack-score: 积分不够啦
repeated: 已经有人上传过这个材质了,直接添加到衣柜使用吧~