GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Share - Beta · TonyScript/Coding-iOS@1b74bbc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Coding_iOS.xcodeproj
    • project.pbxproj
  • Coding_iOS
    • .DS_Store
    • AppDelegate.m
    • Coding_iOS-Info.plist
    • Coding_iOS-Prefix.pch.example
    • Controllers
      • RootControllers
        • BaseViewController.m
      • WebViewController.m
    • Models
      • Tweet.m
    • Vendor/UMSocial_Sdk_4.2.3_Extra/SinaSSO
      • UMSocialSinaSSOHandler.h
      • WBHttpRequest+WeiboShare.h
      • WBHttpRequest+WeiboToken.h
      • WBHttpRequest+WeiboUser.h
      • WBHttpRequest.h
      • WBSDKBasicButton.h
      • WBSDKCommentButton.h
      • WBSDKRelationshipButton.h
      • WeiboSDK.bundle
        • images
          • close.png
          • [email protected]
          • common_button_white.png
          • [email protected]
          • common_button_white_highlighted.png
          • [email protected]
          • compose_keyboardbutton_background.png
          • [email protected]
          • compose_toolbar_background.png
          • [email protected]
          • empty_failed.png
          • [email protected]
          • navigationbar_background.png
          • [email protected]
          • navigationbar_background_os7.png
          • [email protected]
          • sdk_weibo_logo.png
          • [email protected]
          • [email protected]
          • timeline_relationship_icon_addattention.png
          • [email protected]
          • [email protected]
          • timeline_relationship_icon_attention.png
          • [email protected]
          • [email protected]
        • others
          • mfp.cer
      • WeiboSDK.h
      • WeiboUser.h
      • libSocialSinaSSO.a
      • libWeiboSDK.a
    • Views
      • CodingShareView.m

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Coding_iOS.xcodeproj/project.pbxproj‎

Copy file name to clipboardExpand all lines: Coding_iOS.xcodeproj/project.pbxproj
+52Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@
493493
4EE548211AE8DB5600A92306 /* Project.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EE548201AE8DB5600A92306 /* Project.m */; };
494494
4EE548281AE9166B00A92306 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4EE548261AE9166B00A92306 /* [email protected] */; };
495495
4EE548291AE9166B00A92306 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4EE548271AE9166B00A92306 /* [email protected] */; };
496+
4EE956611B9C1C500009EDA9 /* libSocialSinaSSO.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EE956541B9C1C500009EDA9 /* libSocialSinaSSO.a */; };
497+
4EE956621B9C1C500009EDA9 /* libWeiboSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EE956551B9C1C500009EDA9 /* libWeiboSDK.a */; };
498+
4EE956631B9C1C500009EDA9 /* WeiboSDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 4EE9565E1B9C1C500009EDA9 /* WeiboSDK.bundle */; };
496499
4EED9DCC1B539366000E5827 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4EED9DCA1B539366000E5827 /* [email protected] */; };
497500
4EED9DCD1B539366000E5827 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4EED9DCB1B539366000E5827 /* [email protected] */; };
498501
4EED9DD11B53BBCF000E5827 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4EED9DD01B53BBCF000E5827 /* [email protected] */; };
@@ -1649,6 +1652,19 @@
16491652
4EE548201AE8DB5600A92306 /* Project.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Project.m; sourceTree = "<group>"; };
16501653
4EE548261AE9166B00A92306 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
16511654
4EE548271AE9166B00A92306 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
1655+
4EE956541B9C1C500009EDA9 /* libSocialSinaSSO.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libSocialSinaSSO.a; sourceTree = "<group>"; };
1656+
4EE956551B9C1C500009EDA9 /* libWeiboSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libWeiboSDK.a; sourceTree = "<group>"; };
1657+
4EE956561B9C1C500009EDA9 /* UMSocialSinaSSOHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UMSocialSinaSSOHandler.h; sourceTree = "<group>"; };
1658+
4EE956571B9C1C500009EDA9 /* WBHttpRequest+WeiboShare.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "WBHttpRequest+WeiboShare.h"; sourceTree = "<group>"; };
1659+
4EE956581B9C1C500009EDA9 /* WBHttpRequest+WeiboToken.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "WBHttpRequest+WeiboToken.h"; sourceTree = "<group>"; };
1660+
4EE956591B9C1C500009EDA9 /* WBHttpRequest+WeiboUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "WBHttpRequest+WeiboUser.h"; sourceTree = "<group>"; };
1661+
4EE9565A1B9C1C500009EDA9 /* WBHttpRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WBHttpRequest.h; sourceTree = "<group>"; };
1662+
4EE9565B1B9C1C500009EDA9 /* WBSDKBasicButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WBSDKBasicButton.h; sourceTree = "<group>"; };
1663+
4EE9565C1B9C1C500009EDA9 /* WBSDKCommentButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WBSDKCommentButton.h; sourceTree = "<group>"; };
1664+
4EE9565D1B9C1C500009EDA9 /* WBSDKRelationshipButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WBSDKRelationshipButton.h; sourceTree = "<group>"; };
1665+
4EE9565E1B9C1C500009EDA9 /* WeiboSDK.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = WeiboSDK.bundle; sourceTree = "<group>"; };
1666+
4EE9565F1B9C1C500009EDA9 /* WeiboSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WeiboSDK.h; sourceTree = "<group>"; };
1667+
4EE956601B9C1C500009EDA9 /* WeiboUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WeiboUser.h; sourceTree = "<group>"; };
16521668
4EED9DCA1B539366000E5827 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
16531669
4EED9DCB1B539366000E5827 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
16541670
4EED9DD01B53BBCF000E5827 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
@@ -2231,6 +2247,7 @@
22312247
4EDD8F5A1A36F4FA00E9E232 /* Security.framework in Frameworks */,
22322248
4EDD8F581A36F4CA00E9E232 /* CoreTelephony.framework in Frameworks */,
22332249
4EDD8F561A36F4BD00E9E232 /* SystemConfiguration.framework in Frameworks */,
2250+
4EE956611B9C1C500009EDA9 /* libSocialSinaSSO.a in Frameworks */,
22342251
4EDD8F541A36F4AC00E9E232 /* CFNetwork.framework in Frameworks */,
22352252
4E96E7C81A1B46740037C098 /* QuickLook.framework in Frameworks */,
22362253
8E03D4A419F696970092F8C8 /* libz.dylib in Frameworks */,
@@ -2244,6 +2261,7 @@
22442261
7EB02FE91B6D0F3E00D2166C /* libopencore-amrwb.a in Frameworks */,
22452262
8E47701A198770E700997D05 /* CoreData.framework in Frameworks */,
22462263
8E477018198770E700997D05 /* UIKit.framework in Frameworks */,
2264+
4EE956621B9C1C500009EDA9 /* libWeiboSDK.a in Frameworks */,
22472265
8E477014198770E700997D05 /* Foundation.framework in Frameworks */,
22482266
68D9A2AD062641F5BCA573C5 /* libPods.a in Frameworks */,
22492267
4EF818241B09D8D8005F974B /* WebP.framework in Frameworks */,
@@ -3192,6 +3210,34 @@
31923210
path = TableListView;
31933211
sourceTree = "<group>";
31943212
};
3213+
4EE956521B9C1C500009EDA9 /* UMSocial_Sdk_4.2.3_Extra */ = {
3214+
isa = PBXGroup;
3215+
children = (
3216+
4EE956531B9C1C500009EDA9 /* SinaSSO */,
3217+
);
3218+
path = UMSocial_Sdk_4.2.3_Extra;
3219+
sourceTree = "<group>";
3220+
};
3221+
4EE956531B9C1C500009EDA9 /* SinaSSO */ = {
3222+
isa = PBXGroup;
3223+
children = (
3224+
4EE956541B9C1C500009EDA9 /* libSocialSinaSSO.a */,
3225+
4EE956551B9C1C500009EDA9 /* libWeiboSDK.a */,
3226+
4EE956561B9C1C500009EDA9 /* UMSocialSinaSSOHandler.h */,
3227+
4EE956571B9C1C500009EDA9 /* WBHttpRequest+WeiboShare.h */,
3228+
4EE956581B9C1C500009EDA9 /* WBHttpRequest+WeiboToken.h */,
3229+
4EE956591B9C1C500009EDA9 /* WBHttpRequest+WeiboUser.h */,
3230+
4EE9565A1B9C1C500009EDA9 /* WBHttpRequest.h */,
3231+
4EE9565B1B9C1C500009EDA9 /* WBSDKBasicButton.h */,
3232+
4EE9565C1B9C1C500009EDA9 /* WBSDKCommentButton.h */,
3233+
4EE9565D1B9C1C500009EDA9 /* WBSDKRelationshipButton.h */,
3234+
4EE9565E1B9C1C500009EDA9 /* WeiboSDK.bundle */,
3235+
4EE9565F1B9C1C500009EDA9 /* WeiboSDK.h */,
3236+
4EE956601B9C1C500009EDA9 /* WeiboUser.h */,
3237+
);
3238+
path = SinaSSO;
3239+
sourceTree = "<group>";
3240+
};
31953241
4EF17E761B3BF320003CDD2D /* introduction */ = {
31963242
isa = PBXGroup;
31973243
children = (
@@ -4179,6 +4225,7 @@
41794225
8EA6D03E19E240C40076D59C /* Vendor */ = {
41804226
isa = PBXGroup;
41814227
children = (
4228+
4EE956521B9C1C500009EDA9 /* UMSocial_Sdk_4.2.3_Extra */,
41824229
4E93F2301B84243D00017916 /* KxMenu */,
41834230
4E0022971B735075005308DE /* EAIntroView */,
41844231
4E0022931B73506A005308DE /* EARestrictedScrollView */,
@@ -4713,6 +4760,7 @@
47134760
4EF17EDD1B3C3112003CDD2D /* [email protected] in Resources */,
47144761
8E97CE9F1A0C7E26006F9AD7 /* [email protected] in Resources */,
47154762
4E6383E51B3272CF00D98648 /* [email protected] in Resources */,
4763+
4EE956631B9C1C500009EDA9 /* WeiboSDK.bundle in Resources */,
47164764
4E93F2451B85C4C300017916 /* FileInfoViewController.xib in Resources */,
47174765
0A782FDE1AB5B78B00E96661 /* TweetSendCreateLocationCell.xib in Resources */,
47184766
8E8F7B3219EF6306006BA8BD /* [email protected] in Resources */,
@@ -5614,6 +5662,8 @@
56145662
"$(PROJECT_DIR)/Coding_iOS/Vendor/UMENG",
56155663
"$(PROJECT_DIR)/Coding_iOS/Vendor/XGPush",
56165664
"$(PROJECT_DIR)/Coding_iOS/Util/Audio/opencore-amr-iOS/lib",
5665+
"$(PROJECT_DIR)/Coding_iOS/Vendor/SinaSSO",
5666+
"$(PROJECT_DIR)/Coding_iOS/Vendor/UMSocial_Sdk_4.2.3_Extra/SinaSSO",
56175667
);
56185668
PRODUCT_BUNDLE_IDENTIFIER = net.coding.CodingForiOS;
56195669
PRODUCT_NAME = Coding_iOS;
@@ -5649,6 +5699,8 @@
56495699
"$(PROJECT_DIR)/Coding_iOS/Vendor/UMENG",
56505700
"$(PROJECT_DIR)/Coding_iOS/Vendor/XGPush",
56515701
"$(PROJECT_DIR)/Coding_iOS/Util/Audio/opencore-amr-iOS/lib",
5702+
"$(PROJECT_DIR)/Coding_iOS/Vendor/SinaSSO",
5703+
"$(PROJECT_DIR)/Coding_iOS/Vendor/UMSocial_Sdk_4.2.3_Extra/SinaSSO",
56525704
);
56535705
PRODUCT_BUNDLE_IDENTIFIER = net.coding.CodingForiOS;
56545706
PRODUCT_NAME = Coding_iOS;
Collapse file

‎Coding_iOS/.DS_Store‎

Copy file name to clipboard
0 Bytes
Binary file not shown.
Collapse file

‎Coding_iOS/AppDelegate.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/AppDelegate.m
+19-8Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#import <UMengSocial/UMSocialWechatHandler.h>
3030
#import <UMengSocial/UMSocialQQHandler.h>
3131
#import <UMengSocial/UMSocialSinaHandler.h>
32-
32+
#import "UMSocialSinaSSOHandler.h"
3333

3434
#import "Tweet.h"
3535
#import "sys/utsname.h"
@@ -119,11 +119,18 @@ - (void)completionStartAnimationWithOptions:(NSDictionary *)launchOptions{
119119
[MobClick startWithAppkey:kUmeng_AppKey reportPolicy:BATCH channelId:nil];
120120

121121
// UMENG Social
122-
[UMSocialData setAppKey:@"507fcab25270157b37000010"];
123-
[UMSocialWechatHandler setWXAppId:@"wxd930ea5d5a258f4f" appSecret:@"db426a9829e4b49a0dcac7b4162da6b6" url:[NSObject baseURLStr]];
124-
[UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:[NSObject baseURLStr]];
125-
[UMSocialSinaHandler openSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
122+
// [UMSocialData setAppKey:@"507fcab25270157b37000010"];
123+
// [UMSocialWechatHandler setWXAppId:@"wxd930ea5d5a258f4f" appSecret:@"db426a9829e4b49a0dcac7b4162da6b6" url:[NSObject baseURLStr]];
124+
// [UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:[NSObject baseURLStr]];
125+
// [UMSocialSinaHandler openSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
126126

127+
[UMSocialData setAppKey:kUmeng_AppKey];
128+
[UMSocialWechatHandler setWXAppId:kSocial_WX_ID appSecret:kSocial_WX_Secret url:[NSObject baseURLStr]];
129+
[UMSocialQQHandler setQQWithAppId:kSocial_QQ_ID appKey:kSocial_QQ_Secret url:[NSObject baseURLStr]];
130+
131+
[UMSocialSinaHandler openSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
132+
// [UMSocialSinaSSOHandler openNewSinaSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
133+
127134
// 信鸽推送
128135
[XGPush startApp:kXGPush_Id appKey:kXGPush_Key];
129136
[Login setXGAccountWithCurUser];
@@ -238,10 +245,14 @@ - (void)customizeInterface {
238245
#pragma mark URL Schemes
239246
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
240247
DebugLog(@"path: %@, params: %@", [url path], [url queryParams]);
241-
if (![self showPasswordWithURL:url]) {//如果不是登录注册的链接,就是用正常的解析模式解析
242-
[BaseViewController presentLinkStr:url.absoluteString];
248+
if ([url.absoluteString hasPrefix:kCodingAppScheme]) {
249+
if (![self showPasswordWithURL:url]) {//如果不是登录注册的链接,就是用正常的解析模式解析
250+
[BaseViewController presentLinkStr:url.absoluteString];
251+
}
252+
return YES;
253+
}else{
254+
return [UMSocialSnsService handleOpenURL:url];
243255
}
244-
return YES;
245256
}
246257

247258
- (BOOL)showPasswordWithURL:(NSURL *)url{
Collapse file

‎Coding_iOS/Coding_iOS-Info.plist‎

Copy file name to clipboardExpand all lines: Coding_iOS/Coding_iOS-Info.plist
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<array>
3030
<string>coding-net</string>
3131
<string>wb126663232</string>
32-
<string>QQ05FC5B14</string>
33-
<string>wxd9a39c7122aa6516</string>
32+
<string>QQ41C16356</string>
33+
<string>wx261aca93a0e9893c</string>
3434
</array>
3535
</dict>
3636
</array>
Collapse file

‎Coding_iOS/Coding_iOS-Prefix.pch.example‎

Copy file name to clipboardExpand all lines: Coding_iOS/Coding_iOS-Prefix.pch.example
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
#define kUmeng_Event_Request_ActionOfServer @"Request_ActionOfServer"
5555
#define kUmeng_Event_Request_ActionOfLocal @"Request_ActionOfLocal"
5656

57+
//Social Data
58+
#define kSocial_WX_ID @""
59+
#define kSocial_WX_Secret @""
60+
#define kSocial_QQ_ID @""
61+
#define kSocial_QQ_Secret @""
62+
5763
//信鸽推送
5864
#define kXGPush_Id 123456
5965
#define kXGPush_Key @""
@@ -66,6 +72,12 @@
6672
//测试地址
6773
#define kBaseUrlStr_Test @"https://coding.net/"
6874

75+
//手机版地址
76+
#define kBaseUrlStr_Phone @"https://m.coding.net/"
77+
78+
//Coding App 的专属链接
79+
#define kCodingAppScheme @"coding-net:"
80+
6981
//appStore地址
7082
#define kAppUrl @"http://itunes.apple.com/app/id923676989"
7183
#define kAppReviewURL @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=923676989"
Collapse file

‎Coding_iOS/Controllers/RootControllers/BaseViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/RootControllers/BaseViewController.m
+12-4Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ + (UIViewController *)analyseVCFromLinkStr:(NSString *)linkStr analyseMethod:(An
131131

132132
if (!linkStr || linkStr.length <= 0) {
133133
return nil;
134-
}else if (![linkStr hasPrefix:@"/"] && ![linkStr hasPrefix:[NSObject baseURLStr]]){
134+
}else if (!([linkStr hasPrefix:@"/"] ||
135+
[linkStr hasPrefix:kCodingAppScheme] ||
136+
[linkStr hasPrefix:kBaseUrlStr_Phone] ||
137+
[linkStr hasPrefix:[NSObject baseURLStr]])){
135138
return nil;
136139
}
137140

@@ -323,9 +326,11 @@ + (void)presentLinkStr:(NSString *)linkStr{
323326
if (vc && isNewVC) {
324327
[self presentVC:vc];
325328
}else if (!vc){
326-
//网页
327-
WebViewController *webVc = [WebViewController webVCWithUrlStr:linkStr];
328-
[self presentVC:webVc];
329+
if (![linkStr hasPrefix:kCodingAppScheme]) {
330+
//网页
331+
WebViewController *webVc = [WebViewController webVCWithUrlStr:linkStr];
332+
[self presentVC:webVc];
333+
}
329334
}
330335
}
331336

@@ -357,6 +362,9 @@ + (UIViewController *)presentingVC{
357362
}
358363

359364
+ (void)presentVC:(UIViewController *)viewController{
365+
if (!viewController) {
366+
return;
367+
}
360368
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:viewController];
361369
viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"关闭" style:UIBarButtonItemStylePlain target:viewController action:@selector(dismissModalViewControllerAnimated:)];
362370
[[self presentingVC] presentViewController:nav animated:YES completion:nil];
Collapse file

‎Coding_iOS/Controllers/WebViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/WebViewController.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ @interface WebViewController ()<UIWebViewDelegate>
2020
@implementation WebViewController
2121

2222
+ (instancetype)webVCWithUrlStr:(NSString *)curUrlStr{
23-
if (!curUrlStr || curUrlStr.length <= 0) {
23+
if (!curUrlStr || curUrlStr.length <= 0 || [curUrlStr hasPrefix:kCodingAppScheme]) {
2424
return nil;
2525
}
2626

Collapse file

‎Coding_iOS/Models/Tweet.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Models/Tweet.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ - (void)deleteComment:(Comment *)comment{
251251
}
252252

253253
- (NSString *)toShareLinkStr{
254-
return [NSString stringWithFormat:@"%@u/%@/pp/%@", [NSObject baseURLStr], _owner.global_key, _id];
254+
return [NSString stringWithFormat:@"%@u/%@/pp/%@", kBaseUrlStr_Phone, _owner.global_key, _id];
255255
}
256256

257257
#pragma mark ALAsset
Collapse file

‎Coding_iOS/Vendor/UMSocial_Sdk_4.2.3_Extra/SinaSSO/UMSocialSinaSSOHandler.h‎

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//
2+
// UMSocialSinaSSOHandler.h
3+
// SocialSDK
4+
//
5+
// Created by Gavin Ye on 3/27/15.
6+
// Copyright (c) 2015 Umeng. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
/**
12+
使用最新版本的新浪微博官方SDK处理新浪微博SSO授权
13+
14+
*/
15+
@interface UMSocialSinaSSOHandler : NSObject
16+
17+
/**
18+
设置使用最新新浪微博SDK来处理SSO授权
19+
20+
@param redirectURL 回调URL
21+
22+
*/
23+
+(void)openNewSinaSSOWithRedirectURL:(NSString *)redirectURL;
24+
25+
@end
Collapse file

‎Coding_iOS/Vendor/UMSocial_Sdk_4.2.3_Extra/SinaSSO/WBHttpRequest+WeiboShare.h‎

Copy file name to clipboard
+93Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
//
2+
// WBHttpRequest+WeiboShare.h
3+
// WeiboSDK
4+
//
5+
// Created by DannionQiu on 14/10/31.
6+
// Copyright (c) 2014年 SINA iOS Team. All rights reserved.
7+
//
8+
9+
#import "WBHttpRequest.h"
10+
11+
@class WBImageObject;
12+
13+
@interface WBHttpRequest (WeiboShare)
14+
15+
/*!
16+
@method
17+
18+
@abstract
19+
获得当前授权用户的微博id列表。
20+
21+
@param userID 当前授权用户的uid
22+
23+
@param accessToken 当前授权用户的accessToken
24+
25+
@param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。
26+
27+
@param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。
28+
29+
@param handler 完成请求后会回调handler,处理完成请求后的逻辑。
30+
*/
31+
+ (WBHttpRequest *)requestForStatusIDsFromCurrentUser:(NSString*)userID
32+
withAccessToken:(NSString*)accessToken
33+
andOtherProperties:(NSDictionary*)otherProperties
34+
queue:(NSOperationQueue*)queue
35+
withCompletionHandler:(WBRequestHandler)handler;
36+
37+
/*!
38+
@method
39+
40+
@abstract
41+
转发微博。转发微博id所对应的微博。
42+
43+
@param statusID 微博id,微博的唯一标识符。
44+
45+
@param text 添加的转发文本,内容不超过140个汉字,不填则默认为“转发微博”。
46+
47+
@param accessToken 当前授权用户的accessToken
48+
49+
@param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。
50+
51+
@param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。
52+
53+
@param handler 完成请求后会回调handler,处理完成请求后的逻辑。
54+
*/
55+
+ (WBHttpRequest *)requestForRepostAStatus:(NSString*)statusID
56+
repostText:(NSString*)text
57+
withAccessToken:(NSString*)accessToken
58+
andOtherProperties:(NSDictionary*)otherProperties
59+
queue:(NSOperationQueue*)queue
60+
withCompletionHandler:(WBRequestHandler)handler;
61+
62+
/*!
63+
@method
64+
65+
@abstract
66+
发表一个微博(无图或者带一张图片的微博)。
67+
68+
@param statusText 要发布的微博文本内容,内容不超过140个汉字。
69+
70+
@param imageObject 要上传的图片,仅支持JPEG、GIF、PNG格式,图片大小小于5M。这个参数可为nil。由于只能传一张图片,若imageObject和url都有值,请看@caution。
71+
72+
@param url 图片的URL地址,必须以http开头。这个参数可为nil,由于只能传一张图片,若imageObject和url都有值,请看@caution。
73+
74+
@param accessToken 当前授权用户的accessToken
75+
76+
@param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。
77+
78+
@param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。
79+
80+
@param handler 完成请求后会回调handler,处理完成请求后的逻辑。
81+
82+
@caution 注意,如果参数imageObject和url都有值,则发布带有imageObject所对应的图片,忽略url所对应的图片。
83+
*/
84+
+ (WBHttpRequest *)requestForShareAStatus:(NSString*)statusText
85+
contatinsAPicture:(WBImageObject*)imageObject
86+
orPictureUrl:(NSString*)url
87+
withAccessToken:(NSString*)accessToken
88+
andOtherProperties:(NSDictionary*)otherProperties
89+
queue:(NSOperationQueue*)queue
90+
withCompletionHandler:(WBRequestHandler)handler;
91+
92+
93+
@end

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.