From 56962e2764f8bd3249ce18299f412c4e7433b4c1 Mon Sep 17 00:00:00 2001 From: yutou Date: Tue, 18 May 2021 18:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0layui=20=E9=A2=84=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=95=AA=E5=89=A7=E8=AE=A2=E9=98=85=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tools/Gams/RandomRpgGame/MainGame.java | 10 +++ .../Gams/RandomRpgGame/Users/BaseUser.java | 6 ++ .../com/yutou/tools/Tools/GoogleAccount.java | 2 +- .../tools/bangumi/AnimationController.java | 35 ++++++++-- .../tools/mybatis/model/BangumiItem.java | 2 + .../mybatis/model/BangumiItemExample.java | 60 ++++++++++++++++++ src/main/resources/mapper/BangumiItemDao.xml | 27 ++++++-- web/html/body/nas/animrss.html | 35 +++++++--- web/html/body/nas/side.html | 11 +++- web/layui/css/layui.css | 3 +- web/layui/css/layui.mobile.css | 2 - web/layui/css/modules/code.css | 3 +- .../css/modules/laydate/default/laydate.css | 3 +- web/layui/css/modules/layer/default/layer.css | 3 +- web/layui/images/face/0.gif | Bin 2689 -> 0 bytes web/layui/images/face/1.gif | Bin 5514 -> 0 bytes web/layui/images/face/10.gif | Bin 2797 -> 0 bytes web/layui/images/face/11.gif | Bin 4121 -> 0 bytes web/layui/images/face/12.gif | Bin 3361 -> 0 bytes web/layui/images/face/13.gif | Bin 7425 -> 0 bytes web/layui/images/face/14.gif | Bin 2375 -> 0 bytes web/layui/images/face/15.gif | Bin 1793 -> 0 bytes web/layui/images/face/16.gif | Bin 6721 -> 0 bytes web/layui/images/face/17.gif | Bin 4439 -> 0 bytes web/layui/images/face/18.gif | Bin 3017 -> 0 bytes web/layui/images/face/19.gif | Bin 3040 -> 0 bytes web/layui/images/face/2.gif | Bin 3222 -> 0 bytes web/layui/images/face/20.gif | Bin 5144 -> 0 bytes web/layui/images/face/21.gif | Bin 5191 -> 0 bytes web/layui/images/face/22.gif | Bin 9823 -> 0 bytes web/layui/images/face/23.gif | Bin 3792 -> 0 bytes web/layui/images/face/24.gif | Bin 8096 -> 0 bytes web/layui/images/face/25.gif | Bin 3127 -> 0 bytes web/layui/images/face/26.gif | Bin 3291 -> 0 bytes web/layui/images/face/27.gif | Bin 4377 -> 0 bytes web/layui/images/face/28.gif | Bin 2793 -> 0 bytes web/layui/images/face/29.gif | Bin 4854 -> 0 bytes web/layui/images/face/3.gif | Bin 4017 -> 0 bytes web/layui/images/face/30.gif | Bin 2555 -> 0 bytes web/layui/images/face/31.gif | Bin 2002 -> 0 bytes web/layui/images/face/32.gif | Bin 3481 -> 0 bytes web/layui/images/face/33.gif | Bin 2454 -> 0 bytes web/layui/images/face/34.gif | Bin 3700 -> 0 bytes web/layui/images/face/35.gif | Bin 1800 -> 0 bytes web/layui/images/face/36.gif | Bin 2331 -> 0 bytes web/layui/images/face/37.gif | Bin 1513 -> 0 bytes web/layui/images/face/38.gif | Bin 3615 -> 0 bytes web/layui/images/face/39.gif | Bin 6495 -> 0 bytes web/layui/images/face/4.gif | Bin 5689 -> 0 bytes web/layui/images/face/40.gif | Bin 3154 -> 0 bytes web/layui/images/face/41.gif | Bin 3644 -> 0 bytes web/layui/images/face/42.gif | Bin 5305 -> 0 bytes web/layui/images/face/43.gif | Bin 2674 -> 0 bytes web/layui/images/face/44.gif | Bin 4126 -> 0 bytes web/layui/images/face/45.gif | Bin 3417 -> 0 bytes web/layui/images/face/46.gif | Bin 3007 -> 0 bytes web/layui/images/face/47.gif | Bin 2333 -> 0 bytes web/layui/images/face/48.gif | Bin 2689 -> 0 bytes web/layui/images/face/49.gif | Bin 2315 -> 0 bytes web/layui/images/face/5.gif | Bin 4567 -> 0 bytes web/layui/images/face/50.gif | Bin 5866 -> 0 bytes web/layui/images/face/51.gif | Bin 2785 -> 0 bytes web/layui/images/face/52.gif | Bin 777 -> 0 bytes web/layui/images/face/53.gif | Bin 2127 -> 0 bytes web/layui/images/face/54.gif | Bin 2196 -> 0 bytes web/layui/images/face/55.gif | Bin 1971 -> 0 bytes web/layui/images/face/56.gif | Bin 2034 -> 0 bytes web/layui/images/face/57.gif | Bin 2705 -> 0 bytes web/layui/images/face/58.gif | Bin 2258 -> 0 bytes web/layui/images/face/59.gif | Bin 10311 -> 0 bytes web/layui/images/face/6.gif | Bin 2213 -> 0 bytes web/layui/images/face/60.gif | Bin 3245 -> 0 bytes web/layui/images/face/61.gif | Bin 2495 -> 0 bytes web/layui/images/face/62.gif | Bin 2017 -> 0 bytes web/layui/images/face/63.gif | Bin 5871 -> 0 bytes web/layui/images/face/64.gif | Bin 6448 -> 0 bytes web/layui/images/face/65.gif | Bin 3576 -> 0 bytes web/layui/images/face/66.gif | Bin 3029 -> 0 bytes web/layui/images/face/67.gif | Bin 2701 -> 0 bytes web/layui/images/face/68.gif | Bin 1424 -> 0 bytes web/layui/images/face/69.gif | Bin 2431 -> 0 bytes web/layui/images/face/7.gif | Bin 3398 -> 0 bytes web/layui/images/face/70.gif | Bin 4590 -> 0 bytes web/layui/images/face/71.gif | Bin 5304 -> 0 bytes web/layui/images/face/8.gif | Bin 4050 -> 0 bytes web/layui/images/face/9.gif | Bin 4221 -> 0 bytes web/layui/lay/modules/carousel.js | 2 - web/layui/lay/modules/code.js | 2 - web/layui/lay/modules/colorpicker.js | 2 - web/layui/lay/modules/element.js | 2 - web/layui/lay/modules/flow.js | 2 - web/layui/lay/modules/form.js | 2 - web/layui/lay/modules/jquery.js | 5 -- web/layui/lay/modules/laydate.js | 2 - web/layui/lay/modules/layedit.js | 2 - web/layui/lay/modules/layer.js | 2 - web/layui/lay/modules/laypage.js | 2 - web/layui/lay/modules/laytpl.js | 2 - web/layui/lay/modules/mobile.js | 2 - web/layui/lay/modules/rate.js | 2 - web/layui/lay/modules/slider.js | 2 - web/layui/lay/modules/table.js | 2 - web/layui/lay/modules/transfer.js | 2 - web/layui/lay/modules/tree.js | 2 - web/layui/lay/modules/upload.js | 2 - web/layui/lay/modules/util.js | 2 - web/layui/layui.all.js | 5 -- web/layui/layui.js | 7 +- 108 files changed, 176 insertions(+), 81 deletions(-) create mode 100644 src/main/java/com/yutou/tools/Gams/RandomRpgGame/MainGame.java create mode 100644 src/main/java/com/yutou/tools/Gams/RandomRpgGame/Users/BaseUser.java delete mode 100644 web/layui/css/layui.mobile.css delete mode 100644 web/layui/images/face/0.gif delete mode 100644 web/layui/images/face/1.gif delete mode 100644 web/layui/images/face/10.gif delete mode 100644 web/layui/images/face/11.gif delete mode 100644 web/layui/images/face/12.gif delete mode 100644 web/layui/images/face/13.gif delete mode 100644 web/layui/images/face/14.gif delete mode 100644 web/layui/images/face/15.gif delete mode 100644 web/layui/images/face/16.gif delete mode 100644 web/layui/images/face/17.gif delete mode 100644 web/layui/images/face/18.gif delete mode 100644 web/layui/images/face/19.gif delete mode 100644 web/layui/images/face/2.gif delete mode 100644 web/layui/images/face/20.gif delete mode 100644 web/layui/images/face/21.gif delete mode 100644 web/layui/images/face/22.gif delete mode 100644 web/layui/images/face/23.gif delete mode 100644 web/layui/images/face/24.gif delete mode 100644 web/layui/images/face/25.gif delete mode 100644 web/layui/images/face/26.gif delete mode 100644 web/layui/images/face/27.gif delete mode 100644 web/layui/images/face/28.gif delete mode 100644 web/layui/images/face/29.gif delete mode 100644 web/layui/images/face/3.gif delete mode 100644 web/layui/images/face/30.gif delete mode 100644 web/layui/images/face/31.gif delete mode 100644 web/layui/images/face/32.gif delete mode 100644 web/layui/images/face/33.gif delete mode 100644 web/layui/images/face/34.gif delete mode 100644 web/layui/images/face/35.gif delete mode 100644 web/layui/images/face/36.gif delete mode 100644 web/layui/images/face/37.gif delete mode 100644 web/layui/images/face/38.gif delete mode 100644 web/layui/images/face/39.gif delete mode 100644 web/layui/images/face/4.gif delete mode 100644 web/layui/images/face/40.gif delete mode 100644 web/layui/images/face/41.gif delete mode 100644 web/layui/images/face/42.gif delete mode 100644 web/layui/images/face/43.gif delete mode 100644 web/layui/images/face/44.gif delete mode 100644 web/layui/images/face/45.gif delete mode 100644 web/layui/images/face/46.gif delete mode 100644 web/layui/images/face/47.gif delete mode 100644 web/layui/images/face/48.gif delete mode 100644 web/layui/images/face/49.gif delete mode 100644 web/layui/images/face/5.gif delete mode 100644 web/layui/images/face/50.gif delete mode 100644 web/layui/images/face/51.gif delete mode 100644 web/layui/images/face/52.gif delete mode 100644 web/layui/images/face/53.gif delete mode 100644 web/layui/images/face/54.gif delete mode 100644 web/layui/images/face/55.gif delete mode 100644 web/layui/images/face/56.gif delete mode 100644 web/layui/images/face/57.gif delete mode 100644 web/layui/images/face/58.gif delete mode 100644 web/layui/images/face/59.gif delete mode 100644 web/layui/images/face/6.gif delete mode 100644 web/layui/images/face/60.gif delete mode 100644 web/layui/images/face/61.gif delete mode 100644 web/layui/images/face/62.gif delete mode 100644 web/layui/images/face/63.gif delete mode 100644 web/layui/images/face/64.gif delete mode 100644 web/layui/images/face/65.gif delete mode 100644 web/layui/images/face/66.gif delete mode 100644 web/layui/images/face/67.gif delete mode 100644 web/layui/images/face/68.gif delete mode 100644 web/layui/images/face/69.gif delete mode 100644 web/layui/images/face/7.gif delete mode 100644 web/layui/images/face/70.gif delete mode 100644 web/layui/images/face/71.gif delete mode 100644 web/layui/images/face/8.gif delete mode 100644 web/layui/images/face/9.gif delete mode 100644 web/layui/lay/modules/carousel.js delete mode 100644 web/layui/lay/modules/code.js delete mode 100644 web/layui/lay/modules/colorpicker.js delete mode 100644 web/layui/lay/modules/element.js delete mode 100644 web/layui/lay/modules/flow.js delete mode 100644 web/layui/lay/modules/form.js delete mode 100644 web/layui/lay/modules/jquery.js delete mode 100644 web/layui/lay/modules/laydate.js delete mode 100644 web/layui/lay/modules/layedit.js delete mode 100644 web/layui/lay/modules/layer.js delete mode 100644 web/layui/lay/modules/laypage.js delete mode 100644 web/layui/lay/modules/laytpl.js delete mode 100644 web/layui/lay/modules/mobile.js delete mode 100644 web/layui/lay/modules/rate.js delete mode 100644 web/layui/lay/modules/slider.js delete mode 100644 web/layui/lay/modules/table.js delete mode 100644 web/layui/lay/modules/transfer.js delete mode 100644 web/layui/lay/modules/tree.js delete mode 100644 web/layui/lay/modules/upload.js delete mode 100644 web/layui/lay/modules/util.js delete mode 100644 web/layui/layui.all.js diff --git a/src/main/java/com/yutou/tools/Gams/RandomRpgGame/MainGame.java b/src/main/java/com/yutou/tools/Gams/RandomRpgGame/MainGame.java new file mode 100644 index 0000000..0c54fae --- /dev/null +++ b/src/main/java/com/yutou/tools/Gams/RandomRpgGame/MainGame.java @@ -0,0 +1,10 @@ +package com.yutou.tools.Gams.RandomRpgGame; + +public class MainGame { + public static void main(String[] args) { + new MainGame(); + } + private MainGame(){ + + } +} diff --git a/src/main/java/com/yutou/tools/Gams/RandomRpgGame/Users/BaseUser.java b/src/main/java/com/yutou/tools/Gams/RandomRpgGame/Users/BaseUser.java new file mode 100644 index 0000000..cf6c34f --- /dev/null +++ b/src/main/java/com/yutou/tools/Gams/RandomRpgGame/Users/BaseUser.java @@ -0,0 +1,6 @@ +package com.yutou.tools.Gams.RandomRpgGame.Users; + +public abstract class BaseUser { + private String userName; + +} diff --git a/src/main/java/com/yutou/tools/Tools/GoogleAccount.java b/src/main/java/com/yutou/tools/Tools/GoogleAccount.java index 0036af6..4afe1e5 100644 --- a/src/main/java/com/yutou/tools/Tools/GoogleAccount.java +++ b/src/main/java/com/yutou/tools/Tools/GoogleAccount.java @@ -10,7 +10,7 @@ import org.apache.commons.codec.binary.Base32; import org.apache.commons.codec.binary.Base64; public class GoogleAccount { - public static final boolean isDev=false; + public static final boolean isDev=true; // 生成的key长度( Generate secret key length) private static final int SECRET_SIZE = 10; diff --git a/src/main/java/com/yutou/tools/bangumi/AnimationController.java b/src/main/java/com/yutou/tools/bangumi/AnimationController.java index 595c1d6..74a08fc 100644 --- a/src/main/java/com/yutou/tools/bangumi/AnimationController.java +++ b/src/main/java/com/yutou/tools/bangumi/AnimationController.java @@ -29,14 +29,17 @@ public class AnimationController { @RequestMapping(value = "rss/data.do", method = RequestMethod.GET) public String getAnimList(String key,String type,String team, int page) { boolean isNull = key.length() == 0; - if(!StringUtils.isEmpty(type)&&type.length()>2) - type=type.substring(2); - if(!StringUtils.isEmpty(team)&&team.length()>2) + if(!StringUtils.isEmpty(type)&&type.length()>2) { + type=type.substring(2); + } + if(!StringUtils.isEmpty(team)&&team.length()>2) { team=team.substring(2); + } String[] keys = key.split(" "); JSONArray items = null; - if (!isNull) + if (!isNull) { items = new AnimationData().bangumiList(page,type,team, keys); + } JSONObject json = new JSONObject(); if (items != null) { json.put("data", items); @@ -93,6 +96,7 @@ public class AnimationController { item.setCategories(categories); item.setTitlekey(titleKey); item.setBid(bid); + item.setEnable(1); int i = itemDao.insert(item); JSONObject json = new JSONObject(); json.put("code", 0); @@ -121,6 +125,29 @@ public class AnimationController { return json.toJSONString(); } @ResponseBody + @RequestMapping(value = "rss/edit.do",method = RequestMethod.POST) + public JSONObject editAnimation(int id,String title, String author, String categories, String titleKey,String enable){ + JSONObject json=new JSONObject(); + BangumiItem item =itemDao.selectByPrimaryKey(id); + if(!StringUtils.isEmpty(title)){ + item.setTitle(title); + } + if(!StringUtils.isEmpty(author)){ + item.setAuthor(author); + } + if(!StringUtils.isEmpty(categories)){ + item.setCategories(categories); + } + if(!StringUtils.isEmpty(titleKey)){ + item.setTitlekey(titleKey); + } + if(!StringUtils.isEmpty(enable)){ + item.setEnable(Integer.parseInt(enable)); + } + itemDao.updateByPrimaryKey(item); + return json; + } + @ResponseBody @RequestMapping(value = "client/get.do", method = RequestMethod.GET) public String clientApi(){ AnimationData animationData=new AnimationData(); diff --git a/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java b/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java index 79e27ac..c3d1137 100644 --- a/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java +++ b/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java @@ -24,5 +24,7 @@ public class BangumiItem implements Serializable { */ private String titlekey; + private Integer enable; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/src/main/java/com/yutou/tools/mybatis/model/BangumiItemExample.java b/src/main/java/com/yutou/tools/mybatis/model/BangumiItemExample.java index 1d84d3a..c2b4d3f 100644 --- a/src/main/java/com/yutou/tools/mybatis/model/BangumiItemExample.java +++ b/src/main/java/com/yutou/tools/mybatis/model/BangumiItemExample.java @@ -513,6 +513,66 @@ public class BangumiItemExample { addCriterion("titleKey not between", value1, value2, "titlekey"); return (Criteria) this; } + + public Criteria andEnableIsNull() { + addCriterion("`enable` is null"); + return (Criteria) this; + } + + public Criteria andEnableIsNotNull() { + addCriterion("`enable` is not null"); + return (Criteria) this; + } + + public Criteria andEnableEqualTo(Integer value) { + addCriterion("`enable` =", value, "enable"); + return (Criteria) this; + } + + public Criteria andEnableNotEqualTo(Integer value) { + addCriterion("`enable` <>", value, "enable"); + return (Criteria) this; + } + + public Criteria andEnableGreaterThan(Integer value) { + addCriterion("`enable` >", value, "enable"); + return (Criteria) this; + } + + public Criteria andEnableGreaterThanOrEqualTo(Integer value) { + addCriterion("`enable` >=", value, "enable"); + return (Criteria) this; + } + + public Criteria andEnableLessThan(Integer value) { + addCriterion("`enable` <", value, "enable"); + return (Criteria) this; + } + + public Criteria andEnableLessThanOrEqualTo(Integer value) { + addCriterion("`enable` <=", value, "enable"); + return (Criteria) this; + } + + public Criteria andEnableIn(List values) { + addCriterion("`enable` in", values, "enable"); + return (Criteria) this; + } + + public Criteria andEnableNotIn(List values) { + addCriterion("`enable` not in", values, "enable"); + return (Criteria) this; + } + + public Criteria andEnableBetween(Integer value1, Integer value2) { + addCriterion("`enable` between", value1, value2, "enable"); + return (Criteria) this; + } + + public Criteria andEnableNotBetween(Integer value1, Integer value2) { + addCriterion("`enable` not between", value1, value2, "enable"); + return (Criteria) this; + } } /** diff --git a/src/main/resources/mapper/BangumiItemDao.xml b/src/main/resources/mapper/BangumiItemDao.xml index 326906d..9fd4cda 100644 --- a/src/main/resources/mapper/BangumiItemDao.xml +++ b/src/main/resources/mapper/BangumiItemDao.xml @@ -8,6 +8,7 @@ + @@ -68,7 +69,7 @@ - id, bid, categories, author, title, titleKey + id, bid, categories, author, title, titleKey, `enable` @@ -170,6 +179,9 @@ titleKey = #{record.titlekey,jdbcType=VARCHAR}, + + `enable` = #{record.enable,jdbcType=INTEGER}, + @@ -182,7 +194,8 @@ categories = #{record.categories,jdbcType=VARCHAR}, author = #{record.author,jdbcType=VARCHAR}, title = #{record.title,jdbcType=VARCHAR}, - titleKey = #{record.titlekey,jdbcType=VARCHAR} + titleKey = #{record.titlekey,jdbcType=VARCHAR}, + `enable` = #{record.enable,jdbcType=INTEGER} @@ -205,6 +218,9 @@ titleKey = #{titlekey,jdbcType=VARCHAR}, + + `enable` = #{enable,jdbcType=INTEGER}, + where id = #{id,jdbcType=INTEGER} @@ -214,7 +230,8 @@ categories = #{categories,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR}, title = #{title,jdbcType=VARCHAR}, - titleKey = #{titlekey,jdbcType=VARCHAR} + titleKey = #{titlekey,jdbcType=VARCHAR}, + `enable` = #{enable,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER} \ No newline at end of file diff --git a/web/html/body/nas/animrss.html b/web/html/body/nas/animrss.html index bfa047f..7c1441c 100644 --- a/web/html/body/nas/animrss.html +++ b/web/html/body/nas/animrss.html @@ -168,10 +168,17 @@ 订阅 - +