Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
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
GMPhobos
Commits
82d88df3
Commit
82d88df3
authored
Dec 26, 2016
by
wangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通用参数netStatus
parent
acfea8ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
Podfile
Example/Podfile
+0
-1
Phobos.h
Pod/Classes/Phobos.h
+7
-0
Phobos.m
Pod/Classes/Phobos.m
+8
-1
UIViewController+Phobos.h
Pod/Classes/UIViewController+Phobos.h
+1
-1
No files found.
Example/Podfile
View file @
82d88df3
...
...
@@ -6,7 +6,6 @@ use_frameworks!
target
'GMPhobos_Example'
do
pod
'GMPhobos'
,
:path
=>
'../'
target
'GMPhobos_Tests'
do
inherit!
:search_paths
end
...
...
Pod/Classes/Phobos.h
View file @
82d88df3
...
...
@@ -61,6 +61,13 @@
-
(
void
)
setGPS
:(
NSDictionary
*
)
gps
;
/**
网络状态
@param status status
*/
-
(
void
)
setNetStatus
:
(
NSString
*
)
status
;
/**
* @brief 自定义事件,数量统计.
*
...
...
Pod/Classes/Phobos.m
View file @
82d88df3
...
...
@@ -29,6 +29,7 @@ static NSString *sdkVersion = @"110";
@property
(
strong
,
nonatomic
)
NSString
*
sessionId
;
@property
(
strong
,
nonatomic
)
NSString
*
lng
;
@property
(
strong
,
nonatomic
)
NSString
*
lat
;
@property
(
nonatomic
,
copy
)
NSString
*
netStatus
;
@end
...
...
@@ -56,6 +57,7 @@ static NSString *sdkVersion = @"110";
_userId
=
0
;
_lat
=
@""
;
_lng
=
@""
;
_netStatus
=
@""
;
_currentCityId
=
@""
;
_appVersion
=
[
self
getAppVersion
];
[
self
setupNotification
];
...
...
@@ -90,6 +92,10 @@ static NSString *sdkVersion = @"110";
}
}
-
(
void
)
setNetStatus
:
(
NSString
*
)
status
{
_netStatus
=
status
;
}
-
(
void
)
handleEventAfterInit
{
WMCacheService
*
cache
=
[
WMCacheService
sharedInstance
];
...
...
@@ -335,7 +341,8 @@ static NSString *sdkVersion = @"110";
@"ios"
,
@"device_type"
,
@"Apple"
,
@"manufacturer"
,
_lat
,
@"lat"
,
_lng
,
@"lng"
,
nil
];
_lng
,
@"lng"
,
_netStatus
,
@"is_WiFi"
,
nil
];
NSMutableDictionary
*
appParams
=
[
NSMutableDictionary
dictionaryWithObjectsAndKeys
:
self
.
appName
,
@"name"
,
self
.
appVersion
,
@"version"
,
...
...
Pod/Classes/UIViewController+Phobos.h
View file @
82d88df3
...
...
@@ -44,7 +44,7 @@
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
inTime
;
/**
<#Description#>
hu
*/
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
referrerId
;
...
...
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