feat:新增素材上传完成通知用户订阅消息
This commit is contained in:
+5
-1
@@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import me.chanjar.weixin.mp.api.WxMpService;
|
||||
import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
|
||||
import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
|
||||
@@ -24,6 +25,9 @@ import org.springframework.context.annotation.Configuration;
|
||||
@AutoConfigureAfter({FeignAutoConfiguration.class, WebMvcAutoConfiguration.class})
|
||||
public class WechatAutoConfiguration {
|
||||
|
||||
@Value("${zlt.tenant.id}")
|
||||
private String defaultTenantId;
|
||||
|
||||
@Bean
|
||||
@ConditionalOnBean(WechatConfigService.class)
|
||||
public WxMpService wxMpService(WechatConfigService configService) {
|
||||
@@ -70,6 +74,6 @@ public class WechatAutoConfiguration {
|
||||
}
|
||||
|
||||
private String getCurrentTenantId() {
|
||||
return "webApp";
|
||||
return defaultTenantId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user