浏览代码

fix:middle出包 通过查表获取appType

hidewnd 19 小时之前
父节点
当前提交
477241fa37

+ 15 - 0
ReadMe.md

@@ -108,6 +108,7 @@ journeyios          25030
 treeios             25031
 reheartios          25032
 cocoaios            25033
+yieldlogixios       25034
 
 ```
 
@@ -1023,6 +1024,20 @@ lemonios-service.jar > cocoaios.log 2>&1 &
 
 ```
 
+#### IOS: YieldLogix
+
+```shell
+# yieldlogixios-service
+# 10.206.16.10
+
+nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
+-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
+-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
+-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/ytpm/service-ios-yieldlogixios/yieldlogixios.hprof \
+lemonios-service.jar > yieldlogixios.log 2>&1 &
+
+```
+
 
 
 ## 数据处理

+ 4 - 0
yt-middle/middle-platform/src/main/java/com/ytpm/middle/service/impl/ApkServiceImpl.java

@@ -187,6 +187,10 @@ public class ApkServiceImpl implements ApkService {
             //修改时判断已生成风控配置,则说明出过包,仅需更换即可
             YtRiskTemplate template = riskMapper.getTemplateByAppId(param.getAppId());
             if(Objects.isNull(template)){
+                YtApp ytApp = appMapper.selectByPrimaryId(param.getAppId());
+                if (ytApp != null) {
+                    param.setAppType(ytApp.getAppType());
+                }
                 generateRiskDefaultConfig(param,loginUser);
             }
         }

+ 2 - 1
yt-question/yt-question-service/src/main/java/com/ytpm/question/config/interceptor/HttpInterceptor.java

@@ -45,10 +45,11 @@ public class HttpInterceptor implements HandlerInterceptor {
      */
     private void checkBlackIp(HttpServletRequest request) {
         String clientIp = getClientIp(request);
+        String requestURI = request.getRequestURI();
         String serviceName = StrUtil.replace(applicationName, "-service", "");
         String str = redisService.getStr(StrUtil.format("blackIps:{}", serviceName));
         if (StrUtil.isNotEmpty(str) && Arrays.asList(str.split(",")).contains(clientIp)) {
-            throw new CommonException("not allow request");
+            throw new CommonException(StrUtil.format("{} not allow request:{}", clientIp, requestURI));
         }
     }