From 65e119eea86959554fc7508559a0a02c0fcc1231 Mon Sep 17 00:00:00 2001 From: tanghc Date: Fri, 19 Apr 2019 19:29:45 +0800 Subject: [PATCH] 1.5.0 --- changelog.md | 5 ++ doc/docs/files/10070_easyopen支持.md | 7 +-- sop-1.5.0.sql | 3 ++ .../sop-admin-front/pages/isv/isvList.js | 19 +++++++- .../gitee/sop/adminserver/api/isv/IsvApi.java | 3 +- .../api/isv/param/IsvInfoForm.java | 11 ++--- .../sop/adminserver/api/isv/result/IsvVO.java | 3 ++ .../gitee/sop/adminserver/entity/IsvInfo.java | 8 ++-- sop-common/pom.xml | 2 +- sop-common/sop-gateway-common/pom.xml | 4 +- .../gatewaycommon/bean/BeanInitializer.java | 8 ++++ .../easyopen/EasyopenZuulConfiguration.java | 5 ++ .../manager/AbstractConfiguration.java | 25 +++++++++- .../manager/IsvRoutePermissionManager.java | 8 +--- .../manager/RouteConfigManager.java | 8 +--- .../gatewaycommon/secret/CacheIsvManager.java | 4 +- .../sop/gatewaycommon/secret/IsvManager.java | 10 +--- .../gatewaycommon/secret/SecretContext.java | 20 ++++++++ .../configuration/BaseZuulConfiguration.java | 18 +++++++ sop-common/sop-service-common/pom.xml | 4 +- sop-example/sop-book/sop-book-web/pom.xml | 2 +- sop-example/sop-easyopen/pom.xml | 2 +- sop-example/sop-springmvc/pom.xml | 2 +- sop-example/sop-story/sop-story-web/pom.xml | 2 +- sop-gateway/pom.xml | 2 +- .../sop/gateway/config/GatewayConfig.java | 25 +--------- .../gitee/sop/gateway/config/ZuulConfig.java | 38 ++++----------- .../com/gitee/sop/gateway/entity/IsvInfo.java | 5 +- .../sop/gateway/manager/DbIsvManager.java | 9 ++-- .../manager/DbIsvRoutePermissionManager.java | 1 - .../gateway/manager/DbRouteConfigManager.java | 2 - .../gateway/manager/ManagerInitializer.java | 35 ++------------ sop.sql | 47 +++++++++---------- 33 files changed, 180 insertions(+), 167 deletions(-) create mode 100644 sop-1.5.0.sql create mode 100644 sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/bean/BeanInitializer.java create mode 100644 sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/SecretContext.java diff --git a/changelog.md b/changelog.md index 32e84f98..ed11d298 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,11 @@ ## 1.4.0 +- admin新增signType字段 +- 修复easyopen接入无法访问BUG + +## 1.4.0 + - 新增文档分组显示 - 支持easyopen文档注解 - BUG修复 diff --git a/doc/docs/files/10070_easyopen支持.md b/doc/docs/files/10070_easyopen支持.md index d5162433..6edb8f01 100644 --- a/doc/docs/files/10070_easyopen支持.md +++ b/doc/docs/files/10070_easyopen支持.md @@ -49,11 +49,8 @@ public class SopConfig extends EasyopenServiceConfiguration { ```java @Configuration public class ZuulConfig extends EasyopenZuulConfiguration { - { - Map appSecretStore = new HashMap(); - // 秘钥键值对 - appSecretStore.put("easyopen_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA"); - ApiContext.getApiConfig().addAppSecret(appSecretStore); + static { + new ManagerInitializer(); } } ``` diff --git a/sop-1.5.0.sql b/sop-1.5.0.sql new file mode 100644 index 00000000..1128a898 --- /dev/null +++ b/sop-1.5.0.sql @@ -0,0 +1,3 @@ +ALTER TABLE `sop`.`isv_info` ADD COLUMN `sign_type` TINYINT NOT NULL DEFAULT 1 COMMENT '签名类型,1:RSA2,2:MD5' AFTER `status`; + +update isv_info set sign_type=2 where secret <> ''; \ No newline at end of file diff --git a/sop-admin/sop-admin-front/pages/isv/isvList.js b/sop-admin/sop-admin-front/pages/isv/isvList.js index 4877c49a..605484d5 100644 --- a/sop-admin/sop-admin-front/pages/isv/isvList.js +++ b/sop-admin/sop-admin-front/pages/isv/isvList.js @@ -8,6 +8,10 @@ lib.use(['element', 'table', 'form'], function () { '1': '已启用' ,'2': '已禁用' } + var SIGN_TYPE_ENUM = { + '1': 'RSA2' + ,'2': 'MD5' + } // 渲染表格 var renderTable = function (postData) { @@ -29,10 +33,21 @@ lib.use(['element', 'table', 'form'], function () { {field: 'id', title: 'id', width: 80} , {field: 'appKey', title: 'appKey', width: 250} , {field: 'secret', title: 'secret', width: 80, templet: function (row) { - return ''; + if (row.signType == 2) { + return ''; + } else { + return ''; + } }} , {field: '', title: '公私钥', width: 80, templet: function (row) { - return ''; + if (row.signType == 1) { + return ''; + } else { + return ''; + } + }} + , {field: 'signType', title: '签名类型', width: 80, templet: function (row) { + return SIGN_TYPE_ENUM[row.signType+''] || 'unknown'; }} , {field: 'roleList', title: '角色', templet: function (row) { var html = []; diff --git a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/IsvApi.java b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/IsvApi.java index 4754eef4..64e6ca4f 100644 --- a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/IsvApi.java +++ b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/IsvApi.java @@ -51,6 +51,7 @@ import java.util.stream.Collectors; @Slf4j public class IsvApi { + public static final int SIGN_TYPE_RSA2 = 1; @Autowired IsvInfoMapper isvInfoMapper; @@ -159,7 +160,7 @@ public class IsvApi { } private void formatForm(IsvInfoForm form) { - if (form.getSignType() == 1) { + if (form.getSignType() == SIGN_TYPE_RSA2) { form.setSecret(""); } else { form.setPubKey(""); diff --git a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/param/IsvInfoForm.java b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/param/IsvInfoForm.java index a94bea09..72be5d7f 100644 --- a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/param/IsvInfoForm.java +++ b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/param/IsvInfoForm.java @@ -4,7 +4,7 @@ import com.gitee.easyopen.doc.annotation.ApiDocField; import lombok.Data; import org.hibernate.validator.constraints.Length; -import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; import java.util.Collections; import java.util.List; @@ -14,7 +14,8 @@ import java.util.List; @Data public class IsvInfoForm { - private int signType = 1; + @NotNull(message = "signType不能为null") + private Byte signType; /** secret, 数据库字段:secret */ @ApiDocField(description = "secret") @@ -22,13 +23,11 @@ public class IsvInfoForm { private String secret = ""; /** 公钥, 数据库字段:pub_key */ - @ApiDocField(description = "pubKey", required = true) - @NotBlank(message = "pubKey不能为空") + @ApiDocField(description = "pubKey") private String pubKey; /** 私钥, 数据库字段:pri_key */ - @ApiDocField(description = "priKey", required = true) - @NotBlank(message = "priKey不能为空") + @ApiDocField(description = "priKey") private String priKey; /** 0启用,1禁用, 数据库字段:status */ diff --git a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/result/IsvVO.java b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/result/IsvVO.java index ed2057fd..25f020ed 100644 --- a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/result/IsvVO.java +++ b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/api/isv/result/IsvVO.java @@ -35,6 +35,9 @@ public class IsvVO { @ApiDocField(description = "状态:0启用,1禁用") private Byte status; + @ApiDocField(description = "签名类型:1:RSA2,2:MD5") + private Byte signType; + /** 数据库字段:gmt_create */ @ApiDocField(description = "添加时间") private Date gmtCreate; diff --git a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/entity/IsvInfo.java b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/entity/IsvInfo.java index ffec3c19..0d5e57a9 100644 --- a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/entity/IsvInfo.java +++ b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/entity/IsvInfo.java @@ -2,13 +2,12 @@ package com.gitee.sop.adminserver.entity; import lombok.Data; -import java.util.Date; - import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; +import java.util.Date; /** @@ -38,9 +37,12 @@ public class IsvInfo { /** 私钥, 数据库字段:pri_key */ private String priKey; - /** 0启用,1禁用, 数据库字段:status */ + /** 1启用,2禁用, 数据库字段:status */ private Byte status; + /** 1:RSA2,2:MD5, 数据库字段:sign_type */ + private Byte signType; + /** 数据库字段:gmt_create */ private Date gmtCreate; diff --git a/sop-common/pom.xml b/sop-common/pom.xml index ac939b7c..9d36008c 100644 --- a/sop-common/pom.xml +++ b/sop-common/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.gitee.sop sop-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT pom diff --git a/sop-common/sop-gateway-common/pom.xml b/sop-common/sop-gateway-common/pom.xml index 2816d97d..7735edd4 100644 --- a/sop-common/sop-gateway-common/pom.xml +++ b/sop-common/sop-gateway-common/pom.xml @@ -5,11 +5,11 @@ com.gitee.sop sop-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT ../pom.xml sop-gateway-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT jar sop-gateway-common diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/bean/BeanInitializer.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/bean/BeanInitializer.java new file mode 100644 index 00000000..2161c9d8 --- /dev/null +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/bean/BeanInitializer.java @@ -0,0 +1,8 @@ +package com.gitee.sop.gatewaycommon.bean; + +/** + * @author tanghc + */ +public interface BeanInitializer { + void load(); +} diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/easyopen/EasyopenZuulConfiguration.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/easyopen/EasyopenZuulConfiguration.java index 5e531fe4..78f50e60 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/easyopen/EasyopenZuulConfiguration.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/easyopen/EasyopenZuulConfiguration.java @@ -3,6 +3,7 @@ package com.gitee.sop.gatewaycommon.easyopen; import com.gitee.sop.gatewaycommon.bean.ApiConfig; import com.gitee.sop.gatewaycommon.bean.ApiContext; import com.gitee.sop.gatewaycommon.param.ParamNames; +import com.gitee.sop.gatewaycommon.secret.SecretContext; import com.gitee.sop.gatewaycommon.zuul.configuration.BaseZuulConfiguration; /** @@ -10,6 +11,10 @@ import com.gitee.sop.gatewaycommon.zuul.configuration.BaseZuulConfiguration; */ public class EasyopenZuulConfiguration extends BaseZuulConfiguration { + static { + SecretContext.setSecretGetter((isvDefinition)-> isvDefinition.getSecret()); + } + public EasyopenZuulConfiguration() { ApiConfig apiConfig = ApiContext.getApiConfig(); if (compatibilityModel()) { diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/AbstractConfiguration.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/AbstractConfiguration.java index 80e92ac6..efac38d6 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/AbstractConfiguration.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/AbstractConfiguration.java @@ -1,8 +1,12 @@ package com.gitee.sop.gatewaycommon.manager; import com.gitee.sop.gatewaycommon.bean.ApiContext; +import com.gitee.sop.gatewaycommon.bean.BeanInitializer; import com.gitee.sop.gatewaycommon.message.ErrorFactory; +import org.springframework.beans.BeansException; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; import org.springframework.core.env.Environment; import javax.annotation.PostConstruct; @@ -10,13 +14,20 @@ import javax.annotation.PostConstruct; /** * @author tanghc */ -public class AbstractConfiguration { +public class AbstractConfiguration implements ApplicationContextAware { @Autowired protected Environment environment; @Autowired protected RouteManager apiMetaManager; + protected ApplicationContext applicationContext; + + @Override + public void setApplicationContext(ApplicationContext ctx) throws BeansException { + applicationContext = ctx; + } + @PostConstruct public final void after() { if (RouteRepositoryContext.getRouteRepository() == null) { @@ -26,8 +37,20 @@ public class AbstractConfiguration { ZookeeperContext.setEnvironment(environment); initMessage(); + initBeanInitializer(); apiMetaManager.refresh(); doAfter(); + + } + + protected void initBeanInitializer() { + String[] beanNames = applicationContext.getBeanNamesForType(BeanInitializer.class); + if (beanNames != null) { + for (String beanName : beanNames) { + BeanInitializer beanInitializer = applicationContext.getBean(beanName, BeanInitializer.class); + beanInitializer.load(); + } + } } protected void doAfter() { diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/IsvRoutePermissionManager.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/IsvRoutePermissionManager.java index 283f1bfe..5bbb8e35 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/IsvRoutePermissionManager.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/IsvRoutePermissionManager.java @@ -1,16 +1,12 @@ package com.gitee.sop.gatewaycommon.manager; +import com.gitee.sop.gatewaycommon.bean.BeanInitializer; import com.gitee.sop.gatewaycommon.bean.IsvRoutePermission; /** * @author tanghc */ -public interface IsvRoutePermissionManager { - - /** - * 加载路由权限信息 - */ - void load(); +public interface IsvRoutePermissionManager extends BeanInitializer { /** * 加载权限 diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/RouteConfigManager.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/RouteConfigManager.java index 941fbe59..74e5dcd5 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/RouteConfigManager.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/manager/RouteConfigManager.java @@ -1,5 +1,6 @@ package com.gitee.sop.gatewaycommon.manager; +import com.gitee.sop.gatewaycommon.bean.BeanInitializer; import com.gitee.sop.gatewaycommon.bean.RouteConfig; import com.gitee.sop.gatewaycommon.bean.RouteConfigDto; @@ -7,12 +8,7 @@ import com.gitee.sop.gatewaycommon.bean.RouteConfigDto; * 路由配置管理 * @author tanghc */ -public interface RouteConfigManager { - /** - * 加载 - */ - void load(); - +public interface RouteConfigManager extends BeanInitializer { /** * 更新路由配置 * @param routeConfigDto 路由配置 diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/CacheIsvManager.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/CacheIsvManager.java index badafd33..1ae8b334 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/CacheIsvManager.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/CacheIsvManager.java @@ -4,8 +4,6 @@ import com.gitee.sop.gatewaycommon.bean.IsvDefinition; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import java.util.function.Function; -import java.util.function.Supplier; /** * @author tanghc @@ -18,7 +16,7 @@ public class CacheIsvManager implements IsvManager { private Map isvCache = new ConcurrentHashMap<>(64); @Override - public void load(Function secretGetter) { + public void load() { } diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/IsvManager.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/IsvManager.java index 48d2923e..178ef916 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/IsvManager.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/IsvManager.java @@ -1,19 +1,13 @@ package com.gitee.sop.gatewaycommon.secret; +import com.gitee.sop.gatewaycommon.bean.BeanInitializer; import com.gitee.sop.gatewaycommon.bean.Isv; -import java.util.function.Function; - /** * Isv管理 * @author tanghc */ -public interface IsvManager { - /** - * 加载isv信息 - * @param secretGetter secret获取 - */ - void load(Function secretGetter); +public interface IsvManager extends BeanInitializer { void update(T t); diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/SecretContext.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/SecretContext.java new file mode 100644 index 00000000..811e9901 --- /dev/null +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/secret/SecretContext.java @@ -0,0 +1,20 @@ +package com.gitee.sop.gatewaycommon.secret; + +import com.gitee.sop.gatewaycommon.bean.IsvDefinition; + +import java.util.function.Function; + +/** + * @author tanghc + */ +public class SecretContext { + private static volatile Function secretGetter = (isv) -> isv.getPubKey(); + + public static Function getSecretGetter() { + return secretGetter; + } + + public static void setSecretGetter(Function secretGetter) { + SecretContext.secretGetter = secretGetter; + } +} diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java index 45d17017..b5315662 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java @@ -1,8 +1,12 @@ package com.gitee.sop.gatewaycommon.zuul.configuration; +import com.gitee.sop.gatewaycommon.bean.ApiConfig; import com.gitee.sop.gatewaycommon.bean.ApiContext; import com.gitee.sop.gatewaycommon.manager.AbstractConfiguration; +import com.gitee.sop.gatewaycommon.manager.IsvRoutePermissionManager; +import com.gitee.sop.gatewaycommon.manager.RouteConfigManager; import com.gitee.sop.gatewaycommon.manager.RouteRepositoryContext; +import com.gitee.sop.gatewaycommon.secret.IsvManager; import com.gitee.sop.gatewaycommon.zuul.filter.ErrorFilter; import com.gitee.sop.gatewaycommon.zuul.filter.PostResultFilter; import com.gitee.sop.gatewaycommon.zuul.filter.PreLimitFilter; @@ -116,4 +120,18 @@ public class BaseZuulConfiguration extends AbstractConfiguration { return ApiContext.getApiConfig().getZuulErrorController(); } + @Bean + IsvManager isvManager() { + return ApiConfig.getInstance().getIsvManager(); + } + + @Bean + IsvRoutePermissionManager isvRoutePermissionManager() { + return ApiConfig.getInstance().getIsvRoutePermissionManager(); + } + + @Bean + RouteConfigManager routeConfigManager() { + return ApiConfig.getInstance().getRouteConfigManager(); + } } diff --git a/sop-common/sop-service-common/pom.xml b/sop-common/sop-service-common/pom.xml index dff31f08..c947ce61 100644 --- a/sop-common/sop-service-common/pom.xml +++ b/sop-common/sop-service-common/pom.xml @@ -6,11 +6,11 @@ com.gitee.sop sop-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT ../pom.xml sop-service-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT jar sop-service-common diff --git a/sop-example/sop-book/sop-book-web/pom.xml b/sop-example/sop-book/sop-book-web/pom.xml index 7b10e241..aa01c9b5 100644 --- a/sop-example/sop-book/sop-book-web/pom.xml +++ b/sop-example/sop-book/sop-book-web/pom.xml @@ -23,7 +23,7 @@ com.gitee.sop sop-service-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT com.gitee.sop diff --git a/sop-example/sop-easyopen/pom.xml b/sop-example/sop-easyopen/pom.xml index 8d514de1..5151c186 100644 --- a/sop-example/sop-easyopen/pom.xml +++ b/sop-example/sop-easyopen/pom.xml @@ -29,7 +29,7 @@ com.gitee.sop sop-service-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT org.springframework.cloud diff --git a/sop-example/sop-springmvc/pom.xml b/sop-example/sop-springmvc/pom.xml index 3cf728cc..fc4739a7 100644 --- a/sop-example/sop-springmvc/pom.xml +++ b/sop-example/sop-springmvc/pom.xml @@ -20,7 +20,7 @@ com.gitee.sop sop-service-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT diff --git a/sop-example/sop-story/sop-story-web/pom.xml b/sop-example/sop-story/sop-story-web/pom.xml index d5c14358..cde9be68 100644 --- a/sop-example/sop-story/sop-story-web/pom.xml +++ b/sop-example/sop-story/sop-story-web/pom.xml @@ -23,7 +23,7 @@ com.gitee.sop sop-service-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT com.gitee.sop diff --git a/sop-gateway/pom.xml b/sop-gateway/pom.xml index 02fc4cb3..49d1b6fd 100644 --- a/sop-gateway/pom.xml +++ b/sop-gateway/pom.xml @@ -23,7 +23,7 @@ com.gitee.sop sop-gateway-common - 1.4.0-SNAPSHOT + 1.5.0-SNAPSHOT diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java index 50c64540..6b103018 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java @@ -1,18 +1,7 @@ package com.gitee.sop.gateway.config; -import com.gitee.sop.gateway.entity.IsvInfo; import com.gitee.sop.gateway.manager.ManagerInitializer; -import com.gitee.sop.gatewaycommon.bean.ApiConfig; -import com.gitee.sop.gatewaycommon.bean.ApiContext; import com.gitee.sop.gatewaycommon.gateway.configuration.AlipayGatewayConfiguration; -import com.gitee.sop.gatewaycommon.manager.IsvRoutePermissionManager; -import com.gitee.sop.gatewaycommon.secret.IsvManager; -import com.gitee.sop.gatewaycommon.zuul.configuration.AlipayZuulConfiguration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.annotation.Configuration; - -import java.util.HashMap; -import java.util.Map; /** @@ -31,18 +20,8 @@ import java.util.Map; //@Configuration public class GatewayConfig extends AlipayGatewayConfiguration { - { - Map appSecretStore = new HashMap(); - appSecretStore.put("2019032617262200001", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlyb9aUBaljQP/vjmBFe1mF8HsWSvyfC2NTlpT/V9E+sBxTr8TSkbzJCeeeOEm4LCaVXL0Qz63MZoT24v7AIXTuMdj4jyiM/WJ4tjrWAgnmohNOegfntTto16C3l234vXz4ryWZMR/7W+MXy5B92wPGQEJ0LKFwNEoLspDEWZ7RdE53VH7w6y6sIZUfK+YkXWSwehfKPKlx+lDw3zRJ3/yvMF+U+BAdW/MfECe1GuBnCFKnlMRh3UKczWyXWkL6ItOpYHHJi/jx85op5BWDje2pY9QowzfN94+0DB3T7UvZeweu3zlP6diwAJDzLaFQX8ULfWhY+wfKxIRgs9NoiSAQIDAQAB"); - ApiContext.getApiConfig().addAppSecret(appSecretStore); - } - - @Autowired - ManagerInitializer managerInitializer; - - @Override - protected void doAfter() { - managerInitializer.init(); + static { + new ManagerInitializer(); } } diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java index e03909c8..e96fefe9 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java @@ -7,14 +7,9 @@ package com.gitee.sop.gateway.config; */ import com.gitee.sop.gateway.manager.ManagerInitializer; -import com.gitee.sop.gatewaycommon.bean.ApiContext; import com.gitee.sop.gatewaycommon.zuul.configuration.AlipayZuulConfiguration; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; -import java.util.HashMap; -import java.util.Map; - /** * 开通支付宝开放平台能力 * @author tanghc @@ -22,21 +17,8 @@ import java.util.Map; @Configuration public class ZuulConfig extends AlipayZuulConfiguration { - { - Map appSecretStore = new HashMap(); - // 这里存放商户给的公钥,同时商户那边会存对应的私钥 - // key:应用ID(app_id):建议个格式为`yyyyMMddHHmmss+自增ID`,如2019032617262200001 - // value:公钥 - appSecretStore.put("2019032617262200001", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlyb9aUBaljQP/vjmBFe1mF8HsWSvyfC2NTlpT/V9E+sBxTr8TSkbzJCeeeOEm4LCaVXL0Qz63MZoT24v7AIXTuMdj4jyiM/WJ4tjrWAgnmohNOegfntTto16C3l234vXz4ryWZMR/7W+MXy5B92wPGQEJ0LKFwNEoLspDEWZ7RdE53VH7w6y6sIZUfK+YkXWSwehfKPKlx+lDw3zRJ3/yvMF+U+BAdW/MfECe1GuBnCFKnlMRh3UKczWyXWkL6ItOpYHHJi/jx85op5BWDje2pY9QowzfN94+0DB3T7UvZeweu3zlP6diwAJDzLaFQX8ULfWhY+wfKxIRgs9NoiSAQIDAQAB"); - ApiContext.getApiConfig().addAppSecret(appSecretStore); - } - - @Autowired - ManagerInitializer managerInitializer; - - @Override - protected void doAfter() { - managerInitializer.init(); + static { + new ManagerInitializer(); } } @@ -47,12 +29,9 @@ public class ZuulConfig extends AlipayZuulConfiguration { */ //@Configuration //public class ZuulConfig extends TaobaoZuulConfiguration { -// -// { -// Map appSecretStore = new HashMap(); -// appSecretStore.put("taobao_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA"); -// ApiContext.getApiConfig().addAppSecret(appSecretStore); -// } +// static { +// new ManagerInitializer(); +// } //} /** @@ -60,9 +39,8 @@ public class ZuulConfig extends AlipayZuulConfiguration { */ //@Configuration //public class ZuulConfig extends EasyopenZuulConfiguration { -// { -// Map appSecretStore = new HashMap(); -// appSecretStore.put("easyopen_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA"); -// ApiContext.getApiConfig().addAppSecret(appSecretStore); +// static { +// new ManagerInitializer(); // } +// //} diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/entity/IsvInfo.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/entity/IsvInfo.java index 431cb0fe..04da1f23 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/entity/IsvInfo.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/entity/IsvInfo.java @@ -37,9 +37,12 @@ public class IsvInfo { /** 私钥, 数据库字段:pri_key */ private String priKey; - /** 0启用,1禁用, 数据库字段:status */ + /** 1启用,2禁用, 数据库字段:status */ private Byte status; + /** 1:RSA2,2:MD5, 数据库字段:sign_type */ + private Byte signType; + /** 数据库字段:gmt_create */ private Date gmtCreate; diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvManager.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvManager.java index e6ae46d8..6d81e7d0 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvManager.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvManager.java @@ -8,11 +8,11 @@ import com.gitee.sop.gatewaycommon.bean.ChannelMsg; import com.gitee.sop.gatewaycommon.bean.IsvDefinition; import com.gitee.sop.gatewaycommon.manager.ZookeeperContext; import com.gitee.sop.gatewaycommon.secret.CacheIsvManager; +import com.gitee.sop.gatewaycommon.secret.SecretContext; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; -import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import java.util.List; @@ -21,7 +21,6 @@ import java.util.function.Function; /** * @author tanghc */ -@Component @Slf4j public class DbIsvManager extends CacheIsvManager { @@ -31,14 +30,16 @@ public class DbIsvManager extends CacheIsvManager { @Autowired Environment environment; + @Override - public void load(Function secretGetter) { + public void load() { List isvInfoList = isvInfoMapper.list(new Query()); + Function secretGetter = SecretContext.getSecretGetter(); isvInfoList.stream() .forEach(isvInfo -> { IsvDefinition isvDefinition = new IsvDefinition(); BeanUtils.copyProperties(isvInfo, isvDefinition); - String secret = secretGetter.apply(isvInfo); + String secret = secretGetter.apply(isvDefinition); isvDefinition.setSecret(secret); this.getIsvCache().put(isvDefinition.getAppKey(), isvDefinition); }); diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java index b18cc0ff..4a6ee0bb 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java @@ -35,7 +35,6 @@ import static java.util.stream.Collectors.toList; * * @author tanghc */ -@Component @Slf4j public class DbIsvRoutePermissionManager extends DefaultIsvRoutePermissionManager { diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbRouteConfigManager.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbRouteConfigManager.java index 670d18c1..02b5c626 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbRouteConfigManager.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbRouteConfigManager.java @@ -15,7 +15,6 @@ import com.gitee.sop.gatewaycommon.manager.ZookeeperContext; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; -import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import java.util.Collection; @@ -23,7 +22,6 @@ import java.util.Collection; /** * @author tanghc */ -@Component @Slf4j public class DbRouteConfigManager extends DefaultRouteConfigManager { diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/ManagerInitializer.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/ManagerInitializer.java index c503a0fb..743bc0bc 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/ManagerInitializer.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/ManagerInitializer.java @@ -1,43 +1,16 @@ package com.gitee.sop.gateway.manager; -import com.gitee.sop.gateway.entity.IsvInfo; import com.gitee.sop.gatewaycommon.bean.ApiConfig; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; /** * @author tanghc */ -@Component -@Slf4j public class ManagerInitializer { - @Autowired - DbIsvManager dbIsvManager; - @Autowired - DbIsvRoutePermissionManager dbIsvRoutePermissionManager; - - @Autowired - DbRouteConfigManager dbRouteConfigManager; - - public void init() { + public ManagerInitializer() { ApiConfig apiConfig = ApiConfig.getInstance(); - apiConfig.setIsvManager(dbIsvManager); - apiConfig.setIsvRoutePermissionManager(dbIsvRoutePermissionManager); - apiConfig.setRouteConfigManager(dbRouteConfigManager); - - // 从数据库加载isv信息 - log.debug("从数据库加载isv信息"); - dbIsvManager.load((isvInfoObj) -> { - IsvInfo isvInfo = (IsvInfo)isvInfoObj; - return isvInfo.getPubKey(); - }); - - log.debug("从数据库加载路由权限信息"); - dbIsvRoutePermissionManager.load(); - - log.debug("从数据库加载路由配置信息"); - dbRouteConfigManager.load(); + apiConfig.setIsvManager(new DbIsvManager()); + apiConfig.setIsvRoutePermissionManager(new DbIsvRoutePermissionManager()); + apiConfig.setRouteConfigManager(new DbRouteConfigManager()); } } diff --git a/sop.sql b/sop.sql index b4dc8dde..eb94db0b 100644 --- a/sop.sql +++ b/sop.sql @@ -1,10 +1,3 @@ -# -# SQL Export -# Created by Querious (201048) -# Created: 2019年4月15日 GMT+8 下午8:09:15 -# Encoding: Unicode (UTF-8) -# - CREATE DATABASE IF NOT EXISTS `sop` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `sop`; @@ -45,7 +38,7 @@ CREATE TABLE `config_route_base` ( `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_routeid` (`route_id`) USING BTREE -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='路由配置表'; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='路由配置表'; CREATE TABLE `config_route_limit` ( @@ -72,11 +65,12 @@ CREATE TABLE `isv_info` ( `pub_key` text COMMENT '公钥', `pri_key` text COMMENT '私钥', `status` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '1启用,2禁用', + `sign_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1:RSA2,2:MD5', `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_app_key` (`app_key`) -) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='isv信息表'; +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='isv信息表'; CREATE TABLE `perm_isv_role` ( @@ -87,7 +81,7 @@ CREATE TABLE `perm_isv_role` ( `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_user_role` (`isv_id`,`role_code`) -) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='isv角色'; +) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COMMENT='isv角色'; CREATE TABLE `perm_role` ( @@ -109,7 +103,7 @@ CREATE TABLE `perm_role_permission` ( `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uk_role_perm` (`role_code`,`route_id`) USING BTREE -) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='角色权限表'; +) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='角色权限表'; @@ -133,8 +127,10 @@ LOCK TABLES `config_route_base` WRITE; ALTER TABLE `config_route_base` DISABLE KEYS; INSERT INTO `config_route_base` (`id`, `route_id`, `status`, `gmt_create`, `gmt_modified`) VALUES (1,'story.get1.1',1,'2019-04-09 19:15:58','2019-04-09 19:16:54'), - (2,'alipay.story.get1.0',1,'2019-04-09 19:19:57','2019-04-11 09:35:26'), - (3,'alipay.story.find1.0',1,'2019-04-11 09:29:55','2019-04-11 09:35:02'); + (2,'alipay.story.get1.0',1,'2019-04-09 19:19:57','2019-04-19 14:45:33'), + (3,'alipay.story.find1.0',1,'2019-04-11 09:29:55','2019-04-11 09:35:02'), + (4,'alipay.book.story.get1.0',1,'2019-04-16 10:23:44','2019-04-16 10:23:44'), + (5,'spirngmvc.goods.get1.0',2,'2019-04-16 10:24:08','2019-04-16 10:24:08'); ALTER TABLE `config_route_base` ENABLE KEYS; UNLOCK TABLES; @@ -151,14 +147,15 @@ UNLOCK TABLES; LOCK TABLES `isv_info` WRITE; ALTER TABLE `isv_info` DISABLE KEYS; -INSERT INTO `isv_info` (`id`, `app_key`, `secret`, `pub_key`, `pri_key`, `status`, `gmt_create`, `gmt_modified`) VALUES - (1,'2019032617262200001','','MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlyb9aUBaljQP/vjmBFe1mF8HsWSvyfC2NTlpT/V9E+sBxTr8TSkbzJCeeeOEm4LCaVXL0Qz63MZoT24v7AIXTuMdj4jyiM/WJ4tjrWAgnmohNOegfntTto16C3l234vXz4ryWZMR/7W+MXy5B92wPGQEJ0LKFwNEoLspDEWZ7RdE53VH7w6y6sIZUfK+YkXWSwehfKPKlx+lDw3zRJ3/yvMF+U+BAdW/MfECe1GuBnCFKnlMRh3UKczWyXWkL6ItOpYHHJi/jx85op5BWDje2pY9QowzfN94+0DB3T7UvZeweu3zlP6diwAJDzLaFQX8ULfWhY+wfKxIRgs9NoiSAQIDAQAB','MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCXJv1pQFqWNA/++OYEV7WYXwexZK/J8LY1OWlP9X0T6wHFOvxNKRvMkJ5544SbgsJpVcvRDPrcxmhPbi/sAhdO4x2PiPKIz9Yni2OtYCCeaiE056B+e1O2jXoLeXbfi9fPiv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fVQgiNGQKBgGxU6P2aDAt6VNwWosHSe+d2WWXt8IZBhO9d6dn0f7ORvcjmCqNKTNGgrkewMZEuVcliueJquR47IROdY8qmwqcBAN7Vg2K7r7CPlTKAWTRYMJxCT1Hi5gwJb+CZF3+IeYqsJk2NF2s0w5WJTE70k1BSvQsfIzAIDz2yE1oPHvwVAoGAA6e+xQkVH4fMEph55RJIZ5goI4Y76BSvt2N5OKZKd4HtaV+eIhM3SDsVYRLIm9ZquJHMiZQGyUGnsvrKL6AAVNK7eQZCRDk9KQz+0GKOGqku0nOZjUbAu6A2/vtXAaAuFSFx1rUQVVjFulLexkXR3KcztL1Qu2k5pB6Si0K/uwQ=',1,'2019-03-27 10:10:34','2019-04-01 20:54:01'), - (3,'asdfasdf','','333','4444',2,'2019-03-27 11:01:11','2019-04-14 23:30:17'), - (5,'20190331562013861008375808','29864b93427447f5ac6c44df746f84ef','MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4aMIx2q8rCVu5z6dgNQQSX2vwhvIcRb7FaqSk0ZK8AV9qQeE1TvfFVlAzOHlysE1yTRb0Mb6W2aw7IAS7Bkc3onYBQR4zNQYjYoDBzLukjF8o84hoVFRnh7sV8zszid2vb5H/YQr3M+5sYhlXY8KfILk3vhdbWpHM/umplcrxlwIDAQAB','MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALhowjHarysJW7nPp2A1BBJfa/CG8hxFvsVqpKTRkrwBX2pB4TVO98VWUDM4eXKwTXJNFvQxvpbZrDsgBLsGRzeidgFBHjM1BiNigMHMu6SMXyjziGhUVGeHuxXzOzOJ3a9vkf9hCvcz7mxiGVdjwp8guTe+F1takcz+6amVyvGXAgMBAAECgYBj40LFVGoryp7n0CYeg7kX5p4GJGKCk/jY4IIcUPTFZ4zydorxoDuvpag9hmqqh/r7XeyAC23sMi4LvLUzRRxPh+7PuwL6nLce7vytsMCZQTPpBgz7dUfbi2HAxsuMOLjH3sVGycutARJsz6bT+9P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Q2Jy8UZ4VSVQhVC0My02sCWwWXLlXi8y7An+Rec73Ve0yxREOn5WrQT6pkmzh7V/ABWrYi5WxODpCIjtSbo0fLBa3Wqle00b0/hdCITetqIa/cFs1zUrOqICgK3bKWeXqiAkhhcwSZwwSgwOKM04Wn7ZUCgYBvhHX2mbdVJfyJ8kc+hMOE/E9RHRxiBVEXWHJlGi8PVCqNDq8qHr4g7Mdbzprig+s0yKblwHAvrpkseWvKHiZEjVTyDipHgShY4TGXEigVvUd37uppTrLi8xpYcJjS9gH/px7VCdiq1d+q/MJP6coJ1KphgATm2UrgDMYNBWaYWQKBgEHRxrmER7btUF60/YgcqPHFc8RpYQB2ZZE0kyKGDqk2Data1XYUY6vsPAU28yRLAaWr/D2H17iyLkxP80VLm6QhifxCadv90Q/Wl1DFfOJQMW6avyQ0so6G0wFq/LJxaFK4iLXQn1RJnmTp6BYiJMmK2BhFbRzw8ssMoF6ad2rr',1,'2019-04-03 19:54:05','2019-04-03 20:11:58'); +INSERT INTO `isv_info` (`id`, `app_key`, `secret`, `pub_key`, `pri_key`, `status`, `sign_type`, `gmt_create`, `gmt_modified`) VALUES + (1,'2019032617262200001','','MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlyb9aUBaljQP/vjmBFe1mF8HsWSvyfC2NTlpT/V9E+sBxTr8TSkbzJCeeeOEm4LCaVXL0Qz63MZoT24v7AIXTuMdj4jyiM/WJ4tjrWAgnmohNOegfntTto16C3l234vXz4ryWZMR/7W+MXy5B92wPGQEJ0LKFwNEoLspDEWZ7RdE53VH7w6y6sIZUfK+YkXWSwehfKPKlx+lDw3zRJ3/yvMF+U+BAdW/MfECe1GuBnCFKnlMRh3UKczWyXWkL6ItOpYHHJi/jx85op5BWDje2pY9QowzfN94+0DB3T7UvZeweu3zlP6diwAJDzLaFQX8ULfWhY+wfKxIRgs9NoiSAQIDAQAB','MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCXJv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ESqXUhIkUqoOkuIBTWFFIm54QLTA1tJxDQGb98heoCIWf5x/A3xNI98RsqNBX5JON6qNWjb7/dobitti3t99v/ptDp9u8JTMC7penoryLKK0Ty3bkan95Kn9SC42YxaSghzqkt+uvfVQgiNGQKBgGxU6P2aDAt6VNwWosHSe+d2WWXt8IZBhO9d6dn0f7ORvcjmCqNKTNGgrkewMZEuVcliueJquR47IROdY8qmwqcBAN7Vg2K7r7CPlTKAWTRYMJxCT1Hi5gwJb+CZF3+IeYqsJk2NF2s0w5WJTE70k1BSvQsfIzAIDz2yE1oPHvwVAoGAA6e+xQkVH4fMEph55RJIZ5goI4Y76BSvt2N5OKZKd4HtaV+eIhM3SDsVYRLIm9ZquJHMiZQGyUGnsvrKL6AAVNK7eQZCRDk9KQz+0GKOGqku0nOZjUbAu6A2/vtXAaAuFSFx1rUQVVjFulLexkXR3KcztL1Qu2k5pB6Si0K/uwQ=',1,1,'2019-03-27 10:10:34','2019-04-19 19:21:40'), + (3,'asdfasdf','','333','4444',2,1,'2019-03-27 11:01:11','2019-04-14 23:30:17'), + (5,'20190331562013861008375808','29864b93427447f5ac6c44df746f84ef','MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4aMIx2q8rCVu5z6dgNQQSX2vwhvIcRb7FaqSk0ZK8AV9qQeE1TvfFVlAzOHlysE1yTRb0Mb6W2aw7IAS7Bkc3onYBQR4zNQYjYoDBzLukjF8o84hoVFRnh7sV8zszid2vb5H/YQr3M+5sYhlXY8KfILk3vhdbWpHM/umplcrxlwIDAQAB','MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALhowjHarysJW7nPp2A1BBJfa/CG8hxFvsVqpKTRkrwBX2pB4TVO98VWUDM4eXKwTXJNFvQxvpbZrDsgBLsGRzeidgFBHjM1BiNigMHMu6SMXyjziGhUVGeHuxXzOzOJ3a9vkf9hCvcz7mxiGVdjwp8guTe+F1takcz+6amVyvGXAgMBAAECgYBj40LFVGoryp7n0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v9wMSJH01+Ty+RgTROgtjGRDbMJWnfbdt/61NePr9ar5sb6Nbsf7/I0w7cZF5dsaFYgzaOfQYquzXPbLQHkpMT64bqpv/Mwy4F2lFvaYWY5fA4pC2uckCgYEAg75Ym9ybJaoTqky8ttQ2Jy8UZ4VSVQhVC0My02sCWwWXLlXi8y7An+Rec73Ve0yxREOn5WrQT6pkmzh7V/ABWrYi5WxODpCIjtSbo0fLBa3Wqle00b0/hdCITetqIa/cFs1zUrOqICgK3bKWeXqiAkhhcwSZwwSgwOKM04Wn7ZUCgYBvhHX2mbdVJfyJ8kc+hMOE/E9RHRxiBVEXWHJlGi8PVCqNDq8qHr4g7Mdbzprig+s0yKblwHAvrpkseWvKHiZEjVTyDipHgShY4TGXEigVvUd37uppTrLi8xpYcJjS9gH/px7VCdiq1d+q/MJP6coJ1KphgATm2UrgDMYNBWaYWQKBgEHRxrmER7btUF60/YgcqPHFc8RpYQB2ZZE0kyKGDqk2Data1XYUY6vsPAU28yRLAaWr/D2H17iyLkxP80VLm6QhifxCadv90Q/Wl1DFfOJQMW6avyQ0so6G0wFq/LJxaFK4iLXQn1RJnmTp6BYiJMmK2BhFbRzw8ssMoF6ad2rr',1,1,'2019-04-03 19:54:05','2019-04-03 20:11:58'), + (10,'easyopen_test','G9w0BAQEFAAOCAQ8AMIIBCgKCA','','',1,2,'2019-04-19 17:19:34','2019-04-19 17:30:09'); ALTER TABLE `isv_info` ENABLE KEYS; UNLOCK TABLES; @@ -170,8 +167,10 @@ INSERT INTO `perm_isv_role` (`id`, `isv_id`, `role_code`, `gmt_create`, `gmt_mod (17,6,'vip','2019-03-31 22:07:26','2019-03-31 22:07:26'), (18,5,'normal','2019-03-31 22:07:50','2019-03-31 22:07:50'), (32,7,'normal','2019-04-01 20:27:33','2019-04-01 20:27:33'), - (33,1,'normal','2019-04-01 20:54:01','2019-04-01 20:54:01'), - (36,9,'normal','2019-04-03 20:11:58','2019-04-03 20:11:58'); + (36,9,'normal','2019-04-03 20:11:58','2019-04-03 20:11:58'), + (37,10,'normal','2019-04-19 17:19:34','2019-04-19 17:19:34'), + (38,10,'vip','2019-04-19 17:19:34','2019-04-19 17:19:34'), + (40,1,'normal','2019-04-19 19:21:40','2019-04-19 19:21:40'); ALTER TABLE `perm_isv_role` ENABLE KEYS; UNLOCK TABLES; @@ -188,7 +187,7 @@ UNLOCK TABLES; LOCK TABLES `perm_role_permission` WRITE; ALTER TABLE `perm_role_permission` DISABLE KEYS; INSERT INTO `perm_role_permission` (`id`, `role_code`, `route_id`, `gmt_create`, `gmt_modified`) VALUES - (11,'normal','permission.story.get1.0','2019-04-03 10:09:35','2019-04-03 10:09:35'); + (15,'normal','permission.story.get1.0','2019-04-19 19:17:39','2019-04-19 19:17:39'); ALTER TABLE `perm_role_permission` ENABLE KEYS; UNLOCK TABLES;