Showing
1 changed file
with
5 additions
and
2 deletions
@@ -175,6 +175,11 @@ public class MiniServiceAppImpl implements IMiniAppService { | @@ -175,6 +175,11 @@ public class MiniServiceAppImpl implements IMiniAppService { | ||
175 | 175 | ||
176 | AccessToken accessToken = miniAppAccessTokenService.getTokenCache(reqBO.getMiniappType()); | 176 | AccessToken accessToken = miniAppAccessTokenService.getTokenCache(reqBO.getMiniappType()); |
177 | 177 | ||
178 | + if(accessToken == null){ | ||
179 | + logger.warn("sendTemplateMsg with accessToken is null,templateId is {},reqBO is {}",reqBO.getTemplateId(),reqBO); | ||
180 | + return null; | ||
181 | + } | ||
182 | + | ||
178 | StringBuilder urlBuilder = new StringBuilder(getMsgSendUrl()); | 183 | StringBuilder urlBuilder = new StringBuilder(getMsgSendUrl()); |
179 | urlBuilder.append("access_token="); | 184 | urlBuilder.append("access_token="); |
180 | urlBuilder.append(accessToken.getToken()); | 185 | urlBuilder.append(accessToken.getToken()); |
@@ -195,6 +200,4 @@ public class MiniServiceAppImpl implements IMiniAppService { | @@ -195,6 +200,4 @@ public class MiniServiceAppImpl implements IMiniAppService { | ||
195 | return result; | 200 | return result; |
196 | } | 201 | } |
197 | 202 | ||
198 | - | ||
199 | - | ||
200 | } | 203 | } |
-
Please register or login to post a comment