|
@@ -106,9 +106,18 @@ public class WxMaConfiguration {
|
|
|
log.info("配置加载完毕! 配置文件: {}",JSON.toJSONString(this.properties));
|
|
log.info("配置加载完毕! 配置文件: {}",JSON.toJSONString(this.properties));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private static final String HUYI_APPID = "wx3151330ee8a2648f";
|
|
|
|
|
+ private static final String HUYI_SECRET = "15e42330a67917fb98b62db30387d96e";
|
|
|
|
|
+ private static final String HUYI_TOKEN = "cbnd7lJvkripVOpyTFAna6NAWCxCrvC";
|
|
|
|
|
+ private static final String HUYI_AES_KEY = "HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E";
|
|
|
|
|
+ private static final String HUYI_MSG_DATA_FORMAT = "json";
|
|
|
|
|
+
|
|
|
public static WxMaService getMaService(String appid) {
|
|
public static WxMaService getMaService(String appid) {
|
|
|
- return maServices.computeIfAbsent(appid,e->{
|
|
|
|
|
- // 查询数据库
|
|
|
|
|
|
|
+ return maServices.computeIfAbsent(appid, e -> {
|
|
|
|
|
+ if (HUYI_APPID.equals(appid)) {
|
|
|
|
|
+ return getWxMaService(HUYI_APPID, HUYI_SECRET, HUYI_TOKEN, HUYI_AES_KEY, HUYI_MSG_DATA_FORMAT);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
FsCoursePlaySourceConfigMapper configMapper = SpringUtils.getBean(FsCoursePlaySourceConfigMapper.class);
|
|
FsCoursePlaySourceConfigMapper configMapper = SpringUtils.getBean(FsCoursePlaySourceConfigMapper.class);
|
|
|
Wrapper<FsCoursePlaySourceConfig> queryWrapper = Wrappers.<FsCoursePlaySourceConfig>lambdaQuery()
|
|
Wrapper<FsCoursePlaySourceConfig> queryWrapper = Wrappers.<FsCoursePlaySourceConfig>lambdaQuery()
|
|
|
.eq(FsCoursePlaySourceConfig::getAppid, appid)
|
|
.eq(FsCoursePlaySourceConfig::getAppid, appid)
|