2
This commit is contained in:
@@ -203,7 +203,9 @@ static NSString * const kKBSkinPendingIconShortKey = @"iconShortNames";
|
|||||||
|
|
||||||
#if __has_include("KBNetworkManager.h")
|
#if __has_include("KBNetworkManager.h")
|
||||||
// 远程下载(http/https)
|
// 远程下载(http/https)
|
||||||
|
[KBHUD show];
|
||||||
[[KBNetworkManager shared] GET:zipURL parameters:nil headers:nil completion:^(id jsonOrData, NSURLResponse *response, NSError *error) {
|
[[KBNetworkManager shared] GET:zipURL parameters:nil headers:nil completion:^(id jsonOrData, NSURLResponse *response, NSError *error) {
|
||||||
|
[KBHUD dismiss];
|
||||||
NSData *data = ([jsonOrData isKindOfClass:NSData.class] ? (NSData *)jsonOrData : nil);
|
NSData *data = ([jsonOrData isKindOfClass:NSData.class] ? (NSData *)jsonOrData : nil);
|
||||||
if (error || data.length == 0) {
|
if (error || data.length == 0) {
|
||||||
zipOK = NO;
|
zipOK = NO;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
@"id": @"remote002",
|
@"id": @"remote002",
|
||||||
@"name": KBLocalized(@"远程皮肤"),
|
@"name": KBLocalized(@"远程皮肤"),
|
||||||
// 关键:zip_url 写成 bundle:// 前缀 + 文件名
|
// 关键:zip_url 写成 bundle:// 前缀 + 文件名
|
||||||
@"zip_url": @"",
|
@"zip_url": @"https://raw.githubusercontent.com/CoderST/XDCouponAlertView/master/Christmas.zip",
|
||||||
|
|
||||||
// // 颜色你可以先随便写一套,或者继承默认
|
// // 颜色你可以先随便写一套,或者继承默认
|
||||||
// @"background": @"#F5FFE8",
|
// @"background": @"#F5FFE8",
|
||||||
|
|||||||
Reference in New Issue
Block a user