Skip to content

Commit

Permalink
优化部分体验
Browse files Browse the repository at this point in the history
  • Loading branch information
李红力 committed Aug 24, 2019
1 parent 1482656 commit 63b5ddf
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 22 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* 2019-1-7 修正dmg地址
* 2019-2-15 全屏时隐藏底部按钮
* 2019-2-21 新增2个电视直播源
* 2019-8-24 调试部分源,失效源优先级挪低。


---
## VipVideo For iPhone
Expand Down Expand Up @@ -68,7 +70,7 @@
* 2.进入播放页面, 可以看到需要vip或者劵
![](./images/[email protected])

* 3.利用“切换接口”转换成vip播放地址
* 3.利用“破解接口”转换成vip播放地址
![](./images/[email protected])

* 4.可以看到切换后播放器时间已经变味119分钟。尽情享受吧
Expand Down
18 changes: 9 additions & 9 deletions VipVideo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
4F83BE93221E7AD90077A780 /* vlist.json in Resources */ = {isa = PBXBuildFile; fileRef = 4F83BE92221E7AD90077A780 /* vlist.json */; };
4F2DDCAB2311275E00A105C5 /* vlist.json in Resources */ = {isa = PBXBuildFile; fileRef = 4F2DDCAA2311275E00A105C5 /* vlist.json */; };
4FBF02DB2216B1C5007DB801 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 4FBF02DA2216B1C5007DB801 /* README.md */; };
C7240AB11FA17AF7000684F1 /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = C7240AAF1FA17AF7000684F1 /* JSONKit.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
C72BBE041F9DB2EC00C5141E /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = C72BBE031F9DB2EC00C5141E /* [email protected] */; };
Expand All @@ -25,7 +25,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
4F83BE92221E7AD90077A780 /* vlist.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = vlist.json; path = ../../../../../../Hexo/source/text/vlist.json; sourceTree = "<group>"; };
4F2DDCAA2311275E00A105C5 /* vlist.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = vlist.json; sourceTree = "<group>"; };
4FBF02DA2216B1C5007DB801 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; };
C7240AAF1FA17AF7000684F1 /* JSONKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSONKit.m; sourceTree = "<group>"; };
C7240AB01FA17AF7000684F1 /* JSONKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSONKit.h; sourceTree = "<group>"; };
Expand All @@ -44,7 +44,7 @@
C72BBE201F9DE8B000C5141E /* HLVipViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HLVipViewController.m; sourceTree = "<group>"; };
C72BBE211F9DE8B000C5141E /* HLVipWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HLVipWindowController.h; sourceTree = "<group>"; };
C72BBE221F9DE8B000C5141E /* HLVipWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HLVipWindowController.m; sourceTree = "<group>"; };
C7D9E83B1F9DA1BB00730A34 /* VipVideo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VipVideo.app; sourceTree = BUILT_PRODUCTS_DIR; };
C7D9E83B1F9DA1BB00730A34 /* VIP视频破解.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "VIP视频破解.app"; sourceTree = BUILT_PRODUCTS_DIR; };
C7D9E83E1F9DA1BB00730A34 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
C7D9E83F1F9DA1BB00730A34 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
C7D9E8441F9DA1BB00730A34 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -76,6 +76,7 @@
C72BBE121F9DE8B000C5141E /* Helper */ = {
isa = PBXGroup;
children = (
4F2DDCAA2311275E00A105C5 /* vlist.json */,
C72BBE131F9DE8B000C5141E /* MainMenu.h */,
C72BBE141F9DE8B000C5141E /* MainMenu.m */,
C72BBE171F9DE8B000C5141E /* VipURLManager.h */,
Expand Down Expand Up @@ -119,7 +120,7 @@
C7D9E83C1F9DA1BB00730A34 /* Products */ = {
isa = PBXGroup;
children = (
C7D9E83B1F9DA1BB00730A34 /* VipVideo.app */,
C7D9E83B1F9DA1BB00730A34 /* VIP视频破解.app */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -134,7 +135,6 @@
C72BBE191F9DE8B000C5141E /* Home */,
C72BBE1E1F9DE8B000C5141E /* VipPlay */,
C72BBE031F9DB2EC00C5141E /* [email protected] */,
4F83BE92221E7AD90077A780 /* vlist.json */,
C7D9E8441F9DA1BB00730A34 /* Assets.xcassets */,
C7D9E8461F9DA1BB00730A34 /* Main.storyboard */,
C7D9E8491F9DA1BB00730A34 /* Info.plist */,
Expand All @@ -161,7 +161,7 @@
);
name = VipVideo;
productName = VipVideo;
productReference = C7D9E83B1F9DA1BB00730A34 /* VipVideo.app */;
productReference = C7D9E83B1F9DA1BB00730A34 /* VIP视频破解.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand Down Expand Up @@ -204,10 +204,10 @@
buildActionMask = 2147483647;
files = (
C7D9E8451F9DA1BB00730A34 /* Assets.xcassets in Resources */,
4F83BE93221E7AD90077A780 /* vlist.json in Resources */,
4FBF02DB2216B1C5007DB801 /* README.md in Resources */,
C7D9E8481F9DA1BB00730A34 /* Main.storyboard in Resources */,
C72BBE041F9DB2EC00C5141E /* [email protected] in Resources */,
4F2DDCAB2311275E00A105C5 /* vlist.json in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -362,7 +362,7 @@
INFOPLIST_FILE = VipVideo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.sohu.VipVideo;
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "VIP视频破解";
};
name = Debug;
};
Expand All @@ -376,7 +376,7 @@
INFOPLIST_FILE = VipVideo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.sohu.VipVideo;
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "VIP视频破解";
};
name = Release;
};
Expand Down
Binary file modified VipVideo/Assets.xcassets/AppIcon.appiconset/1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions VipVideo/Helper/MainMenu.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ -(id) init {
}

- (void)createStatusBarItems{
//添加vip解析列表
NSMenuItem * apiListItem = [[NSMenuItem alloc] initWithTitle:@"破解接口" action:Nil keyEquivalent:@""];
[self addItem:apiListItem];
NSMenu *apiListMenu = [[NSMenu alloc] initWithTitle:@"破解接口"];
[[VipURLManager sharedInstance] configurationVipMenu:apiListMenu];
[self setSubmenu:apiListMenu forItem:apiListItem];

// 展示窗口
self.showItem = [[VipURLManager sharedInstance] configurationShowMenuItem:self];

Expand All @@ -41,12 +48,6 @@ - (void)createStatusBarItems{

// [self setSubmenu:appMenu forItem:appItem];

//添加vip解析列表
NSMenuItem * apiListItem = [[NSMenuItem alloc] initWithTitle:@"切换接口" action:Nil keyEquivalent:@""];
[self addItem:apiListItem];
NSMenu *apiListMenu = [[NSMenu alloc] initWithTitle:@"切换接口"];
[[VipURLManager sharedInstance] configurationVipMenu:apiListMenu];
[self setSubmenu:apiListMenu forItem:apiListItem];
[[VipURLManager sharedInstance] configurationChangeUpMenuItem:self];
[[VipURLManager sharedInstance] configurationChangeNextMenuItem:self];

Expand All @@ -69,8 +70,8 @@ + (void)configuMainMenu:(NSMenu *)menu{
[[VipURLManager sharedInstance] configurationChangeUpMenuItem:manager];
[[VipURLManager sharedInstance] configurationChangeNextMenuItem:manager];

NSMenuItem * apiListItem = [[NSMenuItem alloc] initWithTitle:@"切换接口" action:Nil keyEquivalent:@""];
NSMenu *apiListMenu = [[NSMenu alloc] initWithTitle:@"切换接口"];
NSMenuItem * apiListItem = [[NSMenuItem alloc] initWithTitle:@"破解接口" action:Nil keyEquivalent:@""];
NSMenu *apiListMenu = [[NSMenu alloc] initWithTitle:@"破解接口"];
[[VipURLManager sharedInstance] configurationVipMenu:apiListMenu];
[menu setSubmenu:apiListMenu forItem:apiListItem];

Expand Down
8 changes: 4 additions & 4 deletions VipVideo/Helper/VipURLManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ - (void)transformJsonToModel:(NSArray *)jsonArray
}

AppDelegate *delegate = (id)[NSApplication sharedApplication].delegate;
NSMenuItem *listStatusItem = [delegate.statusItem.menu itemWithTitle:@"切换接口"];;
NSMenuItem *listMainItem = [[NSApplication sharedApplication].mainMenu itemWithTitle:@"切换接口"];
NSMenuItem *listStatusItem = [delegate.statusItem.menu itemWithTitle:@"破解接口"];;
NSMenuItem *listMainItem = [[NSApplication sharedApplication].mainMenu itemWithTitle:@"破解接口"];
[listStatusItem.submenu removeAllItems];
[listMainItem.submenu removeAllItems];
[self.itemsArray removeAllObjects];
Expand Down Expand Up @@ -374,8 +374,8 @@ - (void)setCurrentIndex:(NSInteger)currentIndex{
self.currentVipApi = item.url;

AppDelegate *delegate = (id)[NSApplication sharedApplication].delegate;
NSMenuItem *listStatusItem = [delegate.statusItem.menu itemWithTitle:@"切换接口"];;
NSMenuItem *listMainItem = [[NSApplication sharedApplication].mainMenu itemWithTitle:@"切换接口"];
NSMenuItem *listStatusItem = [delegate.statusItem.menu itemWithTitle:@"破解接口"];;
NSMenuItem *listMainItem = [[NSApplication sharedApplication].mainMenu itemWithTitle:@"破解接口"];

NSMenuItem *oldItem1 = nil;
if (_currentIndex < listStatusItem.submenu.itemArray.count) {
Expand Down
Loading

0 comments on commit 63b5ddf

Please sign in to comment.