| | |
| | | |
| | | //如果是Android新版本则调用新的签名方法 |
| | | //布丸3.8.7之后调用新的签名方法 |
| | | if (acceptData != null && "android" .equalsIgnoreCase(acceptData.getPlatform()) && acceptData.getVersion() >= 105) { |
| | | if (acceptData != null && "android".equalsIgnoreCase(acceptData.getPlatform()) && acceptData.getVersion() >= 105) { |
| | | Map<String, String[]> params = request.getParameterMap(); |
| | | //签名 |
| | | List<String> list = new ArrayList<>(); |
| | | for (Iterator<String> its = params.keySet().iterator(); its.hasNext(); ) { |
| | | String key = its.next(); |
| | | if ("sign" .equalsIgnoreCase(key)) |
| | | if ("sign".equalsIgnoreCase(key)) |
| | | continue; |
| | | list.add(key + "=" + params.get(key)[0]); |
| | | } |
| | |
| | | |
| | | |
| | | if (acceptData != null) { |
| | | if ("ios" .equalsIgnoreCase(acceptData.getPlatform())) { |
| | | if ("ios".equalsIgnoreCase(acceptData.getPlatform())) { |
| | | acceptData.setChannel("appstore"); |
| | | } |
| | | if (acceptData.getPackageName().equalsIgnoreCase("com.doudou.ysvideo.lite")) |
| | | acceptData.setPackageName("com.doudou.ysvideo"); |
| | | if (acceptData.getPackageName().equalsIgnoreCase("com.doudou.ysvideo.lite")) { |
| | | //小米上架使用 |
| | | if (!"xiaomi".equalsIgnoreCase(acceptData.getChannel())) { |
| | | acceptData.setPackageName("com.doudou.ysvideo"); |
| | | acceptData.setChildPackage("com.doudou.ysvideo.lite"); |
| | | } else { |
| | | acceptData.setChildPackage("com.doudou.ysvideo.lite"); |
| | | } |
| | | } else { |
| | | acceptData.setChildPackage(acceptData.getPackage()); |
| | | } |
| | | //注入detailSystem |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(acceptData.getPackageName()); |
| | | acceptData.setDetailSystem(detailSystem); |
| | | acceptData.setChildPackage(acceptData.getPackage()); |
| | | |
| | | |
| | | detailSystem = systemService.getDetailSystemByPackage(acceptData.getChildPackage()); |
| | | |
| | | acceptData.setChildDetailSystem(detailSystem); |
| | | } |
| | | |
| | | |