fix: ASW-122 修复 package name 解析失败问题
This commit is contained in:
@@ -91,6 +91,7 @@ public class PackageServiceImpl extends ServiceImpl<PackageDao, PackageEntity> i
|
||||
if (T.ObjectUtil.isNull(apkInfo)) {
|
||||
throw new ASWException(RCode.PACKAGE_FILE_TYPE_ERROR);
|
||||
}
|
||||
entity.setName(apkInfo.getLabel());
|
||||
entity.setVersion(apkInfo.getVersionName());
|
||||
entity.setIdentifier(apkInfo.getPackageName());
|
||||
} else {
|
||||
@@ -98,6 +99,7 @@ public class PackageServiceImpl extends ServiceImpl<PackageDao, PackageEntity> i
|
||||
if (T.ObjectUtil.isNull(apkInfo)) {
|
||||
throw new ASWException(RCode.PACKAGE_FILE_TYPE_ERROR);
|
||||
}
|
||||
entity.setName(apkInfo.getLabel());
|
||||
entity.setVersion(apkInfo.getSdkVersion());
|
||||
entity.setIdentifier(apkInfo.getPackageName());
|
||||
}
|
||||
@@ -107,7 +109,6 @@ public class PackageServiceImpl extends ServiceImpl<PackageDao, PackageEntity> i
|
||||
throw new ASWException(RCode.PACKAGE_FILE_TYPE_ERROR);
|
||||
}
|
||||
entity.setId(pkgId);
|
||||
entity.setName(fileResource.getFilename());
|
||||
entity.setDescription(T.StrUtil.emptyToDefault(description, ""));
|
||||
entity.setPlatform(PkgConstant.Platform.ANDROID.getValue());
|
||||
entity.setWorkspaceId(workspaceId);
|
||||
|
||||
Reference in New Issue
Block a user