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
ad9814f5
Commit
ad9814f5
authored
Aug 26, 2020
by
yueming lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改pv事件的bug
parent
c9b61582
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
GMPhobosPageViewModel.m
GMPhobos/Classes/PhobosDataStorage/GMPhobosPageViewModel.m
+2
-3
No files found.
GMPhobos/Classes/PhobosDataStorage/GMPhobosPageViewModel.m
View file @
ad9814f5
...
@@ -16,13 +16,12 @@
...
@@ -16,13 +16,12 @@
urlApi
:(
NSString
*
)
urlapi
urlApi
:(
NSString
*
)
urlapi
tableName
:(
NSString
*
)
name
tableName
:(
NSString
*
)
name
immediately
:(
BOOL
)
status
{
immediately
:(
BOOL
)
status
{
NSDictionary
*
data
=
dict
[
@"params"
];
GMPhobosPageViewModel
*
model
=
[[
GMPhobosPageViewModel
alloc
]
init
];
GMPhobosPageViewModel
*
model
=
[[
GMPhobosPageViewModel
alloc
]
init
];
//共有参数
//共有参数
model
.
table_name
=
name
;
model
.
table_name
=
name
;
NSTimeInterval
time
=
[[
NSDate
date
]
timeIntervalSince1970
]
*
1000
;
NSTimeInterval
time
=
[[
NSDate
date
]
timeIntervalSince1970
]
*
1000
;
model
.
message_item_id
=
[
NSString
stringWithFormat
:
@"%.f/%lld"
,
time
,
mach_absolute_time
()];
model
.
message_item_id
=
[
NSString
stringWithFormat
:
@"%.f/%lld"
,
time
,
mach_absolute_time
()];
NSMutableDictionary
*
messageDict
=
[
NSMutableDictionary
dictionaryWithDictionary
:
d
ata
];
NSMutableDictionary
*
messageDict
=
[
NSMutableDictionary
dictionaryWithDictionary
:
d
ict
];
[
messageDict
setValue
:
model
.
message_item_id
forKey
:
@"message_item_id"
];
[
messageDict
setValue
:
model
.
message_item_id
forKey
:
@"message_item_id"
];
model
.
data
=
[
GMPhobosTool
dictionaryToJsonString
:
messageDict
];
model
.
data
=
[
GMPhobosTool
dictionaryToJsonString
:
messageDict
];
model
.
status
=
PhobosDataSendStatus_wait
;
model
.
status
=
PhobosDataSendStatus_wait
;
...
@@ -30,6 +29,7 @@
...
@@ -30,6 +29,7 @@
model
.
api
=
urlapi
;
model
.
api
=
urlapi
;
model
.
immediately
=
status
;
model
.
immediately
=
status
;
//私有参数
//私有参数
NSDictionary
*
data
=
dict
[
@"params"
];
model
.
gm_out
=
data
[
@"out"
];
model
.
gm_out
=
data
[
@"out"
];
model
.
gm_in
=
data
[
@"in"
];
model
.
gm_in
=
data
[
@"in"
];
model
.
gm_page_name
=
data
[
@"page_name"
];
model
.
gm_page_name
=
data
[
@"page_name"
];
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
model
.
gm_extra_param
=
data
[
@"extra_param"
];
model
.
gm_extra_param
=
data
[
@"extra_param"
];
model
.
gm_referrer_tab_name
=
data
[
@"referrer_tab_name"
];
model
.
gm_referrer_tab_name
=
data
[
@"referrer_tab_name"
];
model
.
gm_is_push
=
data
[
@"is_push"
];
model
.
gm_is_push
=
data
[
@"is_push"
];
model
.
gm_is_push
=
data
[
@"is_push"
];
model
.
gm_message_id
=
data
[
@"message_id"
];
model
.
gm_message_id
=
data
[
@"message_id"
];
model
.
gm_in_time_millis
=
data
[
@"in_time_millis"
];
model
.
gm_in_time_millis
=
data
[
@"in_time_millis"
];
model
.
gm_out_time_millis
=
data
[
@"out_time_millis"
];
model
.
gm_out_time_millis
=
data
[
@"out_time_millis"
];
...
...
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