key缺少,添加权限多语言
This commit is contained in:
@@ -186,16 +186,6 @@
|
||||
KBSkinDetailVC *vc = [[KBSkinDetailVC alloc] init];
|
||||
vc.themeId = selTheme.themeId;
|
||||
[self.navigationController pushViewController:vc animated:true];
|
||||
return;
|
||||
KBShopThemeModel *theme = (indexPath.item < self.dataSource.count) ? self.dataSource[indexPath.item] : nil;
|
||||
NSString *title = theme.themeName.length ? theme.themeName : KBLocalized(@"专属皮肤002");
|
||||
// 将需求固定到 002.zip,本地写死皮肤 id,便于键盘扩展识别并解压。
|
||||
static NSString * const kKBBundleSkinId002 = @"bundle_skin_fense";
|
||||
[KBSkinInstallBridge publishBundleSkinRequestWithId:kKBBundleSkinId002
|
||||
name:title ?: kKBBundleSkinId002
|
||||
zipName:@"fense.zip"
|
||||
iconShortNames:nil];
|
||||
[KBHUD showInfo:KBLocalized(@"已通知键盘解压,切换到自定义键盘即可生效")];
|
||||
}
|
||||
|
||||
- (void)setStyle:(KBShopStyleModel *)style {
|
||||
|
||||
@@ -105,7 +105,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
}
|
||||
case KBSkinDetailSectionTitle: {
|
||||
KBSkinSectionTitleCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kSectionTitleCellId forIndexPath:indexPath];
|
||||
[cell config:@"Recommended Skin"];
|
||||
[cell config:KBLocalized(@"Recommended Skin")];
|
||||
return cell;
|
||||
}
|
||||
case KBSkinDetailSectionGrid: {
|
||||
@@ -248,11 +248,11 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
- (void)handleDownloadAction {
|
||||
// if (self.isProcessingAction) { return; }
|
||||
if (self.themeId.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"主题信息缺失")];
|
||||
[KBHUD showInfo:KBLocalized(@"Theme information missing")];
|
||||
return;
|
||||
}
|
||||
if (!self.detailModel) {
|
||||
[KBHUD showInfo:KBLocalized(@"正在加载主题详情")];
|
||||
[KBHUD showInfo:KBLocalized(@"Loading theme details")];
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
// weakSelf.isProcessingAction = NO;
|
||||
[KBHUD dismiss];
|
||||
if (error || !success) {
|
||||
NSString *msg = error.localizedDescription ?: KBLocalized(@"购买失败");
|
||||
NSString *msg = error.localizedDescription ?: KBLocalized(@"Purchase failed");
|
||||
[KBHUD showInfo:msg];
|
||||
return;
|
||||
}
|
||||
@@ -310,7 +310,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
NSString *zipURL = [skin[@"zip_url"] isKindOfClass:NSString.class] ? skin[@"zip_url"] : @"";
|
||||
if (skin.count == 0 || zipURL.length == 0) {
|
||||
[KBHUD dismiss];
|
||||
[KBHUD showInfo:KBLocalized(@"下载信息缺失")];
|
||||
[KBHUD showInfo:KBLocalized(@"Download information missing")];
|
||||
return;
|
||||
}
|
||||
NSLog(@"⬇️[SkinDetail] download request id=%@ zip=%@ force=YES",
|
||||
@@ -329,7 +329,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
[strongSelf.shopVM restoreThemeWithId:themeId completion:nil];
|
||||
}
|
||||
} else {
|
||||
[KBHUD showInfo:KBLocalized(@"下载失败")];
|
||||
[KBHUD showInfo:KBLocalized(@"Download failed")];
|
||||
}
|
||||
}];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user