what's new
* 朋友圈转发
* 支持7.0.17
* 更新越狱包7.0.17
* 更新已注入助手的7.0.17未签名包
* 更新越狱源安装包
This commit is contained in:
DKJone 2020-10-16 15:09:43 +08:00
parent 75133d51a9
commit 25a3f7f760
12 changed files with 211 additions and 414 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ dkhelper/dkhelper/TargetApp/
dkhelper/dkhelper/tmp/
dkhelper/LatestBuild
dkhelper/dkhelper/WeChat_Headers/
Info.plist

View File

@ -1,5 +1,14 @@
# DKWechatHelper ChangeLog
[v1.0.5](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.4) / 2020-09-29
[v1.0.6](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.6) / 2020-10-16
what's new
* 朋友圈转发
* 支持7.0.17
* 更新越狱包7.0.17
* 更新已注入助手的7.0.17未签名包
* 更新越狱源安装包
# DKWechatHelper ChangeLog
[v1.0.5](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.5) / 2020-09-29
what's new
* 新增好友关系检测
* 新增自动收取个人红包
@ -7,7 +16,8 @@ what's new
* 支持7.0.15
* 更新越狱包7.0.15
* 更新已注入助手的7.0.15未签名包
* 更新越狱源安装包
* 更新越狱源安装包
[v1.0.4](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.4) / 2020-07-07
what's new
* 新增集赞助手

BIN
IMG_0031.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -2,6 +2,7 @@
不止于抢红包,功能丰富的微信插件。本软件已成功运行在(iphone7-iphone11、iPad)
给个⭐️不迷路↗️
[v1.0.6](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.5)适用微信7.0.17
[v1.0.5](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.5)适用微信7.0.15
[v1.0.4](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.4)适用微信7.0.14
[v1.0.3](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.3)适用微信7.0.13
@ -28,11 +29,13 @@
* [x] CallKit锁屏接视频语音
* [x] 集赞助手
* [x] 好友关系检测
* [x] 朋友圈转发
安装后在微信设置中点击“微信小助手”
更多请查看下图:
![IMG_0223](./IMG_0223.png)
![IMG_0223](./IMG_0031.JPG)
## 使用:
1.源码学习
@ -42,8 +45,9 @@
* [7.0.8-*提取码:h54d*](https://pan.baidu.com/s/11VoUXPC4vb5zg8HzP3kC0Q)
* [7.0.11-*提取码: 2igg*](https://pan.baidu.com/s/1mU_mezsWhqL2-AY0PB-vVg)
* [7.0.13-*提取码: nx4m*](https://pan.baidu.com/s/1rqB0pV4zMEB6Z3VJTsTa8Q)
* [7.0.14](https://n802.com/file/24576815-452231690)
* [7.0.15](https://n802.com/file/24576815-463029595)
* [7.0.14](https://n802.com/file/24576815-452231690)
* [7.0.15](https://n802.com/file/24576815-463029595)
* [7.0.17](https://n802.com/file/24576815-467161527)
将下载的微信放到'/dkhelper/dkhelper/TargetApp/'目录下该目录下有一个空白文件put ipa or app here和它放在同一文件夹下即可修改项目BundleId及签名信息选择真机设备运行即可
@ -54,7 +58,8 @@
* [未签名版7.0.11-*提取码: fe9f*](https://pan.baidu.com/s/1sOPCqnCPxSdIKq7TKuHK9g)
* [未签名版7.0.13-*提取码: fhes*](https://pan.baidu.com/s/1DgSl5u0Gip3cNdqZmRFEWw)
* [未签名版7.0.14](https://n802.com/file/24576815-452232682)
* [未签名版7.0.15](https://n802.com/file/24576815-463034104)
* [未签名版7.0.15](https://n802.com/file/24576815-463034104)
* [未签名版7.0.17](https://n802.com/file/24576815-467161662)
注:推荐使用[ios-app-signer](https://github.com/DanTheMan827/ios-app-signer)签名,使用方法自行百度
3.普通用户:

View File

@ -804,7 +804,7 @@
DEVELOPMENT_TEAM = NL54V6A3P5;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = dkhelper/Info.plist;
MARKETING_VERSION = 7.0.14;
MARKETING_VERSION = 7.0.17;
MONKEYDEV_ADD_SUBSTRATE = YES;
MONKEYDEV_CLASS_DUMP = NO;
MONKEYDEV_DEFAULT_BUNDLEID = YES;
@ -826,7 +826,7 @@
DEVELOPMENT_TEAM = NL54V6A3P5;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = dkhelper/Info.plist;
MARKETING_VERSION = 7.0.14;
MARKETING_VERSION = 7.0.17;
MONKEYDEV_ADD_SUBSTRATE = YES;
MONKEYDEV_CLASS_DUMP = NO;
MONKEYDEV_DEFAULT_BUNDLEID = YES;

View File

@ -1,387 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>19F101</string>
<key>CFBundleDevelopmentRegion</key>
<string>zh_CN</string>
<key>CFBundleDisplayName</key>
<string>微信</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>officeopenxml</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>org.openxmlformats.openxml</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>data</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>ppt</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.powerpoint.ppt</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>doc</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.word.doc</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>xls</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.excel.xls</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>pdf</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>archive</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>org.gnu.gnu-tar-archive</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>audivideo</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.audiovisual-content</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>image</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.image</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>txt</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.text</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>WeChat</string>
<key>CFBundleIconFiles</key>
<array>
<string>dkhelper/icon.png</string>
</array>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon60x60</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon60x60</string>
<string>AppIcon76x76</string>
<string>AppIcon83.5x83.5</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.tencent.xin</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>WeChat</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>7.0.15</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.tencent.xin</string>
<key>CFBundleURLSchemes</key>
<array>
<string>wexinVideoAPI</string>
<string>weixin</string>
<string>weixinapp</string>
<string>fb290293790992170</string>
<string>wechat</string>
<string>QQ41C152CF</string>
<string>prefs</string>
<string>wx703</string>
<string>weixinULAPI</string>
<string>wx7015</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>7.0.15.33</string>
<key>DTAppStoreToolsBuild</key>
<string>11E707</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>17F65</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>DTPlatformVersion</key>
<string>13.5</string>
<key>DTSDKBuild</key>
<string>17F65</string>
<key>DTSDKName</key>
<string>iphoneos13.5</string>
<key>DTXcode</key>
<string>1150</string>
<key>DTXcodeBuild</key>
<string>11E608c</string>
<key>FacebookAppID</key>
<string>290293790992170</string>
<key>FacebookAutoInitEnabled</key>
<false/>
<key>FacebookAutoLogAppEventsEnabled</key>
<false/>
<key>ITSDRMScheme</key>
<string>v2</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>qqnews</string>
<string>weixinbeta</string>
<string>qqnewshd</string>
<string>qqmail</string>
<string>whatsapp</string>
<string>wxwork</string>
<string>wxworklocal</string>
<string>wxcphonebook</string>
<string>mttbrowser</string>
<string>mqqapi</string>
<string>mqzonev2</string>
<string>qqmusic</string>
<string>tenvideo2</string>
<string>tenvideohd</string>
<string>qnreading</string>
<string>weread</string>
<string>sosomap</string>
<string>comgooglemaps</string>
<string>iosamap</string>
<string>baidumap</string>
<string>sgmap</string>
<string>fbauth2</string>
<string>wx76fc280041c16519</string>
<string>wx3bef52104e238bff</string>
<string>rijvideo</string>
<string>wx95a3a4d7c627e07d</string>
<string>wx44b60f3ea0534cd7</string>
<string>wxacbfe7e1bb3e800f</string>
<string>wxfdab5af74990787a</string>
<string>wx58164a91f1821369</string>
<string>wxd477edab60670232</string>
<string>wx82dd7436af5db835</string>
<string>qqstock</string>
<string>openApp.jdMobile</string>
<string>openapp.toplife</string>
<string>qmkege</string>
<string>mqzonex</string>
<string>txvp</string>
<string>sybapp</string>
<string>wx5a4a8ac0fd48303a</string>
<string>qqsports</string>
<string>qqcar</string>
<string>tencentedu</string>
<string>wemusic</string>
<string>qqmap</string>
<string>mqq</string>
<string>webank</string>
<string>weiyun</string>
<string>weishi</string>
<string>wemeet</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<false/>
<key>MidasConfig</key>
<dict>
<key>HideLoading</key>
<true/>
</dict>
<key>MinimumOSVersion</key>
<string>13.0</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Allow WeChat Use Bluetooth Peripheral.</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Allow WeChat Use Bluetooth Peripheral.</string>
<key>NSCameraUsageDescription</key>
<string>Use your Camera to record video, using VoIP features.</string>
<key>NSContactsUsageDescription</key>
<string>Allow WeChat Use your Contact.</string>
<key>NSFaceIDUsageDescription</key>
<string>Allow WeChat Use FaceID.</string>
<key>NSHealthShareUsageDescription</key>
<string>Allow WeChat Use Health Share.</string>
<key>NSHealthUpdateUsageDescription</key>
<string>Allow WeChat Use Health Update.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Allow WeChat Use your Location always.</string>
<key>NSLocationUsageDescription</key>
<string>Allow WeChat Use your Location.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allow WeChat Use your Location when in use.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Use your Microphone to record voice messages, using VoIP features.</string>
<key>NSMotionUsageDescription</key>
<string>Allow WeChat Use Motion.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow WeChat Save Photo.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow WeChat Use your PhotoLibrary.</string>
<key>NSSiriUsageDescription</key>
<string>Allow WeChat Use Siri.</string>
<key>NSUserActivityTypes</key>
<array>
<string>com.tencent.xin</string>
<string>com.tencent.xin.watch</string>
</array>
<key>UIAppFonts</key>
<array>
<string>WeChatSansStd-Bold.ttf</string>
<string>WeChatSansStd-Medium.ttf</string>
<string>WeChatSansStd-Regular.ttf</string>
<string>WeChatSansSuperscript-Bold.ttf</string>
<string>WeChatSansSuperscript-Regular.ttf</string>
<string>WeChatSansSuperscript-Medium.ttf</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>location</string>
<string>audio</string>
<string>fetch</string>
<string>voip</string>
<string>remote-notification</string>
<string>network-authentication</string>
</array>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UILaunchStoryboardName</key>
<string>Launch Screen</string>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportsDocumentBrowser</key>
<false/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>WeChatBundleVersion</key>
<string>7.0.15.33</string>
<key>WeChatFeatureIdentifier</key>
<string>release_appstore_7.0.15</string>
<key>build_time</key>
<string>2020-08-03 23:07:27</string>
<key>by</key>
<string>wx_ios_code_helper</string>
<key>path</key>
<string>release_appstore_7.0.15_2020_7_30_23_1_0</string>
<key>rev</key>
<string>8a2d4b8b37a11de738ace1ec126991085c057907</string>
<key>tag</key>
<string>release_appstore_7.0.15 #29</string>
<key>uuid</key>
<string>2ccd1b78fb963cb1af6f0e1ec2864066</string>
<key>ver</key>
<string>0x17000f21</string>
</dict>
</plist>

View File

@ -12,6 +12,8 @@
#import "DKGroupFilterController.h"
#import "DKCleanFriendsController.h"
#import <NotificationCenter/NotificationCenter.h>
#import <WebKit/WebKit.h>
#import <CoreGraphics/CGGeometry.h>
@interface DKHelperSettingController ()<MultiSelectGroupsViewControllerDelegate>{
WCTableViewManager * manager;
MMUIViewController *helper;
@ -66,7 +68,7 @@
[super viewDidAppear:animated];
if(DKHelperConfig.hasShowTips){return;}
[DKHelper showAlertWithTitle:@"重要提示" message:@"本软件完全免费,插件功能仅供学习,由本软件产生的任何利益纠纷须有使用者自行承担。在收到微信团队\"\"继续使用可能有封号风险,需使用者自行承担。如遇到提醒,请卸载本软件,更换官方微信客户端" btnTitle:@"我明白了" handler:^(UIButton *sender) {
[DKHelper showAlertWithTitle:@"重要提示" message:@"本软件完全免费,插件功能仅供学习,由本软件产生的任何利益纠纷须有使用者自行承担。在收到微信团队\"\"继续使用可能有封号风险,需使用者自行承担。如遇到提醒,请卸载本软件,更换官方微信客户端\n插件开发占用了作者的大量业余时间同时部分越狱软件源盗用插件甚至修改插件名称如果在使用后觉得有用还请支持" btnTitle:@"我明白了" handler:^(UIButton *sender) {
DKHelperConfig.hasShowTips = true;
} btnTitle:@"有风险我不使用了" handler:^(UIButton *sender) {
exit(0);
@ -138,20 +140,25 @@
WCTableViewCellManager *callKitCell = [DKHelper switchCellWithSel:@selector(callKitEnable:) target:self title:@"使用CallKit" switchOn:[DKHelperConfig callKitEnable]];
[toBeNO1Section addCell:callKitCell];
WCTableViewCellManager *timelineForwardCell = [DKHelper switchCellWithSel:@selector(forwardTimeline:) target:self title:@"朋友圈转发" switchOn:[DKHelperConfig timeLineForwardEnable]];
[toBeNO1Section addCell:timelineForwardCell];
//MARK:
WCTableViewSectionManager *supportAuthorSection = [DKHelper sectionManage];
supportAuthorSection.headerTitle = @"支持作者";
[manager addSection:supportAuthorSection];
WCTableViewNormalCellManager * payMeCell = [DKHelper cellWithSel:@selector(payForMe) target:self title:@"请作者喝杯咖啡"];
WCTableViewNormalCellManager * payMeCell = [DKHelper cellWithSel:@selector(payForMe) target:self title:@"给作者倒一杯卡布奇诺"];
[supportAuthorSection addCell:payMeCell];
WCTableViewNormalCellManager *myBlogCell = [DKHelper cellWithSel:@selector(openBlog) target:self title:@"我的博客"];
WCTableViewNormalCellManager *myBlogCell = [DKHelper cellWithSel:@selector(openBlog) target:self title:@"关于本软件"];
[supportAuthorSection addCell:myBlogCell];
WCTableViewNormalCellManager *myGitHubCell = [DKHelper cellWithSel:@selector(openGitHub) target:self title:@"本项目GitHub" rightValue:@"请给个⭐️" accessoryType:1];
[supportAuthorSection addCell:myGitHubCell];
WCTableViewNormalCellManager *joinGroupCell = [DKHelper cellWithSel:@selector(joinGroup) target:self title:@"加入交流群"];
[supportAuthorSection addCell:joinGroupCell];
//MARK:
@ -255,6 +262,10 @@
DKHelperConfig.preventRevoke = sender.isOn;
}
- (void)forwardTimeline:(UISwitch *)sender{
DKHelperConfig.timeLineForwardEnable = sender.isOn;
}
- (void)changedSteps:(UISwitch *)sender{
DKHelperConfig.changeSteps = sender.isOn;
[self reloadTableData];
@ -325,6 +336,13 @@
item.codeUrl = @"m0E25xJo038.ran,NI96(j";
[scMgr retryRequetScanResult:item viewController:self];
}
- (void)joinGroup{
ScanQRCodeResultsMgr *scMgr = [[objc_getClass("MMServiceCenter") defaultCenter] getService:[objc_getClass("ScanQRCodeResultsMgr") class]];
ScanCodeHistoryItem *item = [[objc_getClass("ScanCodeHistoryItem") alloc] init];
item.type = @"QR_CODE";
item.codeUrl = @"https://weixin.qq.com/g/AQYAAHh7lIFHinAoS0lK9bf4Ew4iQs_looYQ8idimgU-BlwZh-agX8grDS1Gwvuq";
[scMgr retryRequetScanResult:item viewController:self];
}
- (void)openBlog{
NSURL *blogUrl = [NSURL URLWithString:@"https://www.jianshu.com/p/8f3eae328a20"];

File diff suppressed because one or more lines are too long

View File

@ -426,15 +426,61 @@
}
%end
%hook CContact
- (BOOL)isEqual:(CContact *)other
{
return [other.m_nsUsrName isEqual: self.m_nsUsrName];
%hook WCOperateFloatView
%new
-(UIButton *)m_shareBtn{
static char m_shareBtnKey;
UIButton * btn = objc_getAssociatedObject(self, &m_shareBtnKey);
if (!btn) {
btn = [UIButton buttonWithType:UIButtonTypeCustom];
[btn setTitle:@" 转发" forState:UIControlStateNormal];
[btn addTarget:self action:@selector(forwordTimeLine:) forControlEvents:UIControlEventTouchUpInside];
[btn setTitleColor:self.m_likeBtn.currentTitleColor forState:0];
btn.titleLabel.font = self.m_likeBtn.titleLabel.font;
[self.m_likeBtn.superview addSubview:btn];
NSString *base64Str = @"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABf0lEQVQ4T62UvyuFYRTHP9/JJimjMpgYTBIDd5XEIIlB9x+Q5U5+xEIZLDabUoQsNtS9G5MyXImk3EHK/3B09Ly31/X+cG9Onek5z+c5z/l+n0f8c+ivPDMrAAVJG1l7mgWWgc0saCvAKnCWBm0F2A+cpEGbBkqSmfWlQXOBZjbgYgCDwIIDXZQ0aCrQzOaAZWAIuAEugaqk00jlJOgvYChaA6aAFeBY0nuaVRqhP4CxxQ9gVZJ3lhs/oAnt1ySN51JiBWa2FMYzW+/QzNwK3cCkpM+/As1sAjgAZiRVIsWKwHZ4Wo9NwFz5W2Ba0oXvi4Cu4L2kUrBEOzAMjIXsAjw7YrbpBZ6BeUlHURNu0h7gFXC/vQRlveM34AF4AipAG1AOxu4Me0qS9uM3cqB7bRS4A3y4556SvOt6hN8mAnrtoaTdxvE40H+QEcBP2pFUS5phBASu3eiS1pPqIuCWpKssMWLAPUl+k8T4fuiSfFaZEYBFSYtZhbmfQ95Bjetfmweww0YOfToAAAAASUVORK5CYII=";
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:base64Str options:NSDataBase64DecodingIgnoreUnknownCharacters];
UIImage *image = [UIImage imageWithData:imageData ];
[btn setImage:image forState:0];
[btn setTintColor:self.m_likeBtn.tintColor];
objc_setAssociatedObject(self, &m_shareBtnKey, btn, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
return btn;
}
%new
-(UIImageView *)m_lineView2{
static char m_lineView2Key;
UIImageView * imageView = objc_getAssociatedObject(self, &m_lineView2Key);
if (!imageView) {
imageView = [[UIImageView alloc] initWithImage:MSHookIvar<UIImageView *>(self, "m_lineView").image];
[self.m_likeBtn.superview addSubview: imageView];
objc_setAssociatedObject(self, &m_lineView2Key, imageView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
return imageView;
}
- (void)showWithItemData:(id)arg1 tipPoint:(struct CGPoint)arg2{
%orig(arg1,arg2);
if (DKHelperConfig.timeLineForwardEnable){
self.frame = CGRectOffset(CGRectInset(self.frame, self.frame.size.width / -4, 0),self.frame.size.width / -4,0);
self.m_shareBtn.frame = CGRectOffset(self.m_likeBtn.frame, self.m_likeBtn.frame.size.width * 2, 0);
self.m_lineView2.frame = CGRectOffset(MSHookIvar<UIImageView *>(self, "m_lineView").frame, [self buttonWidth:self.m_likeBtn], 0);
}
}
%new
- (void)forwordTimeLine:(id)arg1{
WCForwardViewController *forwardVC = [[objc_getClass("WCForwardViewController") alloc] initWithDataItem:self.m_item];
[self.navigationController pushViewController:forwardVC animated:true];
}
%end
//%hook ScanQRCodeResultsMgr
//- (void)retryRequetScanResult:(id)arg1 viewController:(id)arg2{
// %orig;
//}
//%end

View File

@ -77,6 +77,9 @@ NS_ASSUME_NONNULL_BEGIN
/// 启用callkit
+(BOOL)callKitEnable;
+(void)setCallKitEnable:(BOOL)value;
/// 启用朋友圈转发
+(BOOL)timeLineForwardEnable;
+(void)setTimeLineForwardEnable:(BOOL)value;
/// 启用积攒助手
+(BOOL)likeCommentEnable;

View File

@ -47,3 +47,19 @@
@end
@interface WCUIActionSheet : UIWindow
- (void)addDestructiveButtonTitle:(id)arg1 target:(id)arg2 sel:(SEL)arg3;
- (void)addCancelBtnTitle:(id)arg1 target:(id)arg2 sel:(SEL)arg3;
- (void)addBtnTitle:(id)arg1 target:(id)arg2 sel:(SEL)arg3;
- (id)initWithTitle:(id)arg1;
- (id)init;
- (void)showInView:(id)arg1;
@end
//WCUIActionSheet *actionSheet = [[objc_getClass("WCUIActionSheet") alloc] initWithTitle:@"朋友圈转发"];
//for (NSString* str in @[@"转发给好友",@"转发到朋友圈"]){
// [actionSheet addBtnTitle:str target:self sel:@selector(startForword:)];
//}
//[actionSheet showInView:self];

View File

@ -321,6 +321,13 @@
@end
@interface WCContentItem : NSObject
@property(retain, nonatomic) NSString *linkUrl;
@property(nonatomic) int type;
@property(retain, nonatomic) NSMutableArray *mediaList;
@end
/// 朋友圈数据
@interface WCDataItem : NSObject
@property (retain, nonatomic) NSMutableArray * likeUsers;
@ -329,9 +336,18 @@
@property (retain, nonatomic) NSMutableArray * commentUsers;
@property (nonatomic) int commentCount;
@property(nonatomic,assign) BOOL likeFlag;
@property(nonatomic) unsigned int createtime;
@property(nonatomic) unsigned int createtime;
@property(retain, nonatomic) NSString *contentDesc;
@property(retain, nonatomic) WCContentItem *contentObj;
@end
@interface WCNewCommitViewController : MMUIViewController
- (id)initWithSightDraft:(id)arg1;
@end
@interface WCForwardViewController : WCNewCommitViewController
- (id)initWithDataItem:(id)arg1 sessionID:(id)arg2;
- (id)initWithDataItem:(id)arg1;
@end
@interface SettingUtil : NSObject
@ -457,6 +473,29 @@
- (void)setLabelText:(id)arg1;
- (void)ShowTipView:(id)arg1 Title:(id)arg2 Delay:(double)arg3;
@end
@interface WCOperateFloatView : UIView{
UIImageView *m_lineView;
}
@property(nonatomic) __weak UINavigationController *navigationController;
@property(readonly, nonatomic) UIButton *m_commentBtn;
@property(readonly, nonatomic) UIButton *m_likeBtn;
@property(nonatomic,strong) UIButton *m_shareBtn;
@property(nonatomic,strong)UIImageView *m_lineView2;
@property(readonly, nonatomic) WCDataItem *m_item;
- (void)onLikeItem:(id)arg1;
- (void)hide;
- (void)animationDidStopHide;
- (void)animationDidStop;
- (void)showWithItemData:(id)arg1 tipPoint:(struct CGPoint)arg2;
- (id)init;
- (double)protectWidth:(double)arg1;
- (double)buttonWidth:(id)arg1;
/// 朋友圈转发
- (void)forwordTimeLine:(id)arg1;
@end
#endif /* WechatHeaders_h */