Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMBase
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMBase
Commits
f0583aa9
Commit
f0583aa9
authored
Nov 25, 2016
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级GMNetService
parent
e18cda35
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
14 deletions
+45
-14
Podfile.lock
Example/Podfile.lock
+4
-4
WMNetService.h
...ple/Pods/GMNetService/GMNetService/Classes/WMNetService.h
+2
-0
WMNetService.m
...ple/Pods/GMNetService/GMNetService/Classes/WMNetService.m
+31
-2
GMBase.podspec.json
Example/Pods/Local Podspecs/GMBase.podspec.json
+2
-2
Manifest.lock
Example/Pods/Manifest.lock
+4
-4
Info.plist
Example/Pods/Target Support Files/GMBase/Info.plist
+1
-1
Info.plist
Example/Pods/Target Support Files/GMNetService/Info.plist
+1
-1
No files found.
Example/Podfile.lock
View file @
f0583aa9
...
...
@@ -14,7 +14,7 @@ PODS:
- AFNetworking/Serialization (3.1.0)
- AFNetworking/UIKit (3.1.0):
- AFNetworking/NSURLSession
- GMBase (0.0.1
4
):
- GMBase (0.0.1
5
):
- GMNetService
- GMPhobos
- GMRefresh
...
...
@@ -24,7 +24,7 @@ PODS:
- UITableView+FDTemplateLayoutCell (= 1.4)
- GMCache (0.1.0):
- TMCache (~> 2.1.0)
- GMNetService (0.1.
3
):
- GMNetService (0.1.
4
):
- AFNetworking (= 3.1.0)
- GMPhobos (0.2.18):
- GMCache (~> 0.1.0)
...
...
@@ -46,9 +46,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
GMBase:
92223d43d48ecac3991fe1bb5e8d0ee5bc23f1c6
GMBase:
17cb77aabaea020c2b59346b3c87c592a166e200
GMCache: a7b06a2d8a5a1c7cf023055c631ba9a0cd7c39fc
GMNetService:
2eb74ed62512078e9f00bc7006227a93c2acdf32
GMNetService:
4f900345322a1f0f3269fc7edb1cb04dd81a5511
GMPhobos: ea037939d26853e09774fd7e399f0b34fc6107aa
GMRefresh: 8d6ef25dbd38c2687fee713cc520012d47c7261e
JSONModel: 12523685c4b623553ccf844bbbf7007624317b2c
...
...
Example/Pods/GMNetService/GMNetService/Classes/WMNetService.h
View file @
f0583aa9
...
...
@@ -24,6 +24,8 @@
* @since 0.2.3
*/
@property
(
nonatomic
,
strong
)
GMHTTPSessionManager
*
networking
;
/*** @brief 稍安全HTTPS下载器*/
@property
(
nonatomic
,
strong
)
WMNetSecurityWorking
*
netSecurityworking
;
/*** @brief 普通HTTP HOST*/
@property
(
nonatomic
,
strong
)
NSString
*
apiHost
;
/*** @brief 安全HTTPS HOST*/
...
...
Example/Pods/GMNetService/GMNetService/Classes/WMNetService.m
View file @
f0583aa9
...
...
@@ -23,8 +23,6 @@
return
instance
;
}
#pragma mark - Method Decrepeted
-
(
void
)
sendRequestWithURLString
:
(
NSString
*
)
URLString
parameters
:
(
id
)
parameters
method
:
(
HttpMethod
)
method
...
...
@@ -34,6 +32,15 @@
}
-
(
void
)
sendSecurityRequestWithURLString
:
(
NSString
*
)
URLString
parameters
:
(
id
)
parameters
method
:
(
HttpMethod
)
method
success
:
(
HttpSuccessBlock
)
success
failed
:
(
HttpFailedBlock
)
failed
{
[
self
sendRequestWithURLString
:
URLString
parameters
:
parameters
method
:
method
success
:
success
failed
:
failed
isSecurity
:
YES
];
}
-
(
void
)
sendUploadTaskRequestWithData
:
(
NSData
*
)
data
fileName
:
(
NSString
*
)
fileName
name
:
(
NSString
*
)
name
...
...
@@ -45,6 +52,18 @@
[
self
sendUploadTaskRequestWithData
:
data
fileName
:
fileName
name
:
name
url
:
url
mineType
:
mineType
parameters
:
parameters
success
:
success
failed
:
failed
isSecurity
:
NO
];
}
-
(
void
)
sendSecurityUploadTaskRequestWithData
:
(
NSData
*
)
data
fileName
:
(
NSString
*
)
fileName
name
:
(
NSString
*
)
name
url
:
(
NSString
*
)
url
mineType
:
(
NSString
*
)
mineType
parameters
:
(
NSDictionary
*
)
parameters
success
:
(
HttpSuccessBlock
)
success
failed
:
(
HttpFailedBlock
)
failed
{
[
self
sendUploadTaskRequestWithData
:
data
fileName
:
fileName
name
:
name
url
:
url
mineType
:
mineType
parameters
:
parameters
success
:
success
failed
:
failed
isSecurity
:
YES
];
}
#pragma mark - pravite method
-
(
void
)
sendRequestWithURLString
:
(
NSString
*
)
URLString
parameters
:
(
id
)
parameters
...
...
@@ -54,7 +73,12 @@
isSecurity
:
(
BOOL
)
isSecurity
{
NSString
*
resultURLString
=
[
URLString
stringByAppendingString
:
_urlCommonParameters
];
//isSecurity为YES表示HTTTPS
if
(
isSecurity
)
{
[
self
startRequestWithNetworking
:
_netSecurityworking
URLString
:
resultURLString
parameters
:
parameters
method
:
method
success
:
success
failed
:
failed
];
}
else
{
[
self
startRequestWithNetworking
:
_networking
URLString
:
resultURLString
parameters
:
parameters
method
:
method
success
:
success
failed
:
failed
];
}
}
-
(
void
)
startRequestWithNetworking
:
(
AFHTTPSessionManager
*
)
networking
...
...
@@ -193,4 +217,9 @@
_apiHost
=
apiHost
;
_networking
=
[
GMHTTPSessionManager
shareInstanceWithApiHost
:
_apiHost
];
}
-
(
void
)
setApiSecurityHost
:
(
NSString
*
)
apiSecurityHost
{
_apiSecurityHost
=
apiSecurityHost
;
_netSecurityworking
=
[
GMHTTPSessionManager
shareInstanceWithApiHost
:
_apiSecurityHost
];
}
@end
Example/Pods/Local Podspecs/GMBase.podspec.json
View file @
f0583aa9
{
"name"
:
"GMBase"
,
"version"
:
"0.0.1
4
"
,
"version"
:
"0.0.1
5
"
,
"summary"
:
"更美iOS APP 的 Objective-C 基础Pod库"
,
"homepage"
:
"http://git.gengmei.cc/gengmeiios/GMBase"
,
"license"
:
"仅限北京更美互动信息科技有限公司内部使用"
,
...
...
@@ -9,7 +9,7 @@
},
"source"
:
{
"git"
:
"git@git.gengmei.cc:gengmeiios/GMBase.git"
,
"tag"
:
"0.0.1
4
"
"tag"
:
"0.0.1
5
"
},
"platforms"
:
{
"ios"
:
"8.0"
...
...
Example/Pods/Manifest.lock
View file @
f0583aa9
...
...
@@ -14,7 +14,7 @@ PODS:
- AFNetworking/Serialization (3.1.0)
- AFNetworking/UIKit (3.1.0):
- AFNetworking/NSURLSession
- GMBase (0.0.1
4
):
- GMBase (0.0.1
5
):
- GMNetService
- GMPhobos
- GMRefresh
...
...
@@ -24,7 +24,7 @@ PODS:
- UITableView+FDTemplateLayoutCell (= 1.4)
- GMCache (0.1.0):
- TMCache (~> 2.1.0)
- GMNetService (0.1.
3
):
- GMNetService (0.1.
4
):
- AFNetworking (= 3.1.0)
- GMPhobos (0.2.18):
- GMCache (~> 0.1.0)
...
...
@@ -46,9 +46,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
GMBase:
92223d43d48ecac3991fe1bb5e8d0ee5bc23f1c6
GMBase:
17cb77aabaea020c2b59346b3c87c592a166e200
GMCache: a7b06a2d8a5a1c7cf023055c631ba9a0cd7c39fc
GMNetService:
2eb74ed62512078e9f00bc7006227a93c2acdf32
GMNetService:
4f900345322a1f0f3269fc7edb1cb04dd81a5511
GMPhobos: ea037939d26853e09774fd7e399f0b34fc6107aa
GMRefresh: 8d6ef25dbd38c2687fee713cc520012d47c7261e
JSONModel: 12523685c4b623553ccf844bbbf7007624317b2c
...
...
Example/Pods/Target Support Files/GMBase/Info.plist
View file @
f0583aa9
...
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
0.0.1
4
<
/string
>
<
string
>
0.0.1
5
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
Example/Pods/Target Support Files/GMNetService/Info.plist
View file @
f0583aa9
...
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
0.1.
3
<
/string
>
<
string
>
0.1.
4
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment