|  | @@ -60,20 +60,16 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public String appletMsgCheck(String appId, String signature, String timestamp, String nonce, String echoStr) throws Exception {
 |  |      public String appletMsgCheck(String appId, String signature, String timestamp, String nonce, String echoStr) throws Exception {
 | 
											
												
													
														|  | -        log.error("appId : {}, signature : {}, timestamp : {}, nonce : {}, echoStr : {}",
 |  | 
 | 
											
												
													
														|  | -                appId, signature, timestamp, nonce, echoStr);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        log.error("appId : {}, signature : {}, timestamp : {}, nonce : {}, echoStr : {}", appId, signature, timestamp, nonce, echoStr);
 | 
											
												
													
														|  |          GameAppletDTO gameAppletDTO = this.getByAppId(appId);
 |  |          GameAppletDTO gameAppletDTO = this.getByAppId(appId);
 | 
											
												
													
														|  | -        log.error("gameAppletDTO : {}", JsonUtil.toString(gameAppletDTO));
 |  | 
 | 
											
												
													
														|  |          GameAppletDTO.MsgConfigBean msgConfigBean = gameAppletDTO.getMsgConfigBean();
 |  |          GameAppletDTO.MsgConfigBean msgConfigBean = gameAppletDTO.getMsgConfigBean();
 | 
											
												
													
														|  |          if (msgConfigBean == null) {
 |  |          if (msgConfigBean == null) {
 | 
											
												
													
														|  |              throw new BaseException("参数错误, 小游戏应用缺少消息推送配置");
 |  |              throw new BaseException("参数错误, 小游戏应用缺少消息推送配置");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          String mySignature = SignUtil.SHA1(msgConfigBean.getMsgPushToken(), timestamp, nonce);
 |  |          String mySignature = SignUtil.SHA1(msgConfigBean.getMsgPushToken(), timestamp, nonce);
 | 
											
												
													
														|  | -        log.error("mySignature : {}, signature : {}", mySignature, signature);
 |  | 
 | 
											
												
													
														|  |          if (!Objects.equals(mySignature, signature)) {
 |  |          if (!Objects.equals(mySignature, signature)) {
 | 
											
												
													
														|  |              throw new BaseException("验证签名不匹配");
 |  |              throw new BaseException("验证签名不匹配");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        log.error("返回腾讯信息, echoStr : {}", echoStr);
 |  | 
 | 
											
												
													
														|  |          return echoStr;
 |  |          return echoStr;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -169,11 +165,10 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public GameAppletDTO getByAppId(String appId) {
 |  |      public GameAppletDTO getByAppId(String appId) {
 | 
											
												
													
														|  | -        log.error("22222 appId : {}", appId);
 |  | 
 | 
											
												
													
														|  |          GameApplet gameApplet = super.getOne(new LambdaQueryWrapper<GameApplet>()
 |  |          GameApplet gameApplet = super.getOne(new LambdaQueryWrapper<GameApplet>()
 | 
											
												
													
														|  |                  .eq(GameApplet::getAppId, appId));
 |  |                  .eq(GameApplet::getAppId, appId));
 | 
											
												
													
														|  |          if (gameApplet == null) {
 |  |          if (gameApplet == null) {
 | 
											
												
													
														|  | -            log.error("查询到的小程序信息为空");
 |  | 
 | 
											
												
													
														|  | 
 |  | +            log.error("参数错误, 游戏小程序信息不存在, appId : {}", appId);
 | 
											
												
													
														|  |              throw new BaseException("参数错误, 游戏小程序信息不存在");
 |  |              throw new BaseException("参数错误, 游戏小程序信息不存在");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          return BeanUtil.copy(gameApplet, GameAppletDTO.class);
 |  |          return BeanUtil.copy(gameApplet, GameAppletDTO.class);
 |