Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esf
fenzhan_zsb
Commits
c76e0382
Commit
c76e0382
authored
Dec 19, 2019
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
芜湖
parent
4fe326e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
statistics.php
new_admincp/applications/libraries/statistics.php
+7
-3
statistics_model.php
new_admincp/applications/zsb/models/statistics_model.php
+4
-0
No files found.
new_admincp/applications/libraries/statistics.php
View file @
c76e0382
...
@@ -243,7 +243,9 @@ class statistics {
...
@@ -243,7 +243,9 @@ class statistics {
function
get_dayclickcount
(
$day
,
$uid
,
$app
=
'sell'
)
function
get_dayclickcount
(
$day
,
$uid
,
$app
=
'sell'
)
{
{
$mem_key
=
GB_CITY
.
'_statistics_get_dayclickcount2_'
.
$day
.
'_'
.
$app
.
'_'
.
$uid
.
'v3'
;
$mem_key
=
GB_CITY
.
'_statistics_get_dayclickcount2_'
.
$day
.
'_'
.
$app
.
'_'
.
$uid
.
'v3'
;
//$this->mc->delete($mem_key);
if
(
$_COOKIE
[
'update'
]){
$this
->
mc
->
delete
(
$mem_key
);
}
$cache
=
$this
->
mc
->
get
(
$mem_key
);
$cache
=
$this
->
mc
->
get
(
$mem_key
);
$click_info
=
array
();
$click_info
=
array
();
...
@@ -254,9 +256,7 @@ class statistics {
...
@@ -254,9 +256,7 @@ class statistics {
else
else
{
{
$url
=
NewStatisticsUrl
.
"/click?type=getClickUIDHourCount&city="
.
GB_CITY
.
"&day="
.
$day
.
"&app="
.
$app
.
"&uid="
.
$uid
;
$url
=
NewStatisticsUrl
.
"/click?type=getClickUIDHourCount&city="
.
GB_CITY
.
"&day="
.
$day
.
"&app="
.
$app
.
"&uid="
.
$uid
;
$strData
=
$this
->
curl_get_contents
(
$url
);
$strData
=
$this
->
curl_get_contents
(
$url
);
$click_info
=
$this
->
json_decode
(
$strData
);
$click_info
=
$this
->
json_decode
(
$strData
);
$click_info_new
=
array
();
$click_info_new
=
array
();
...
@@ -1025,7 +1025,11 @@ class statistics {
...
@@ -1025,7 +1025,11 @@ class statistics {
function
curl_get_contents
(
$str
,
$t_url
=
""
)
function
curl_get_contents
(
$str
,
$t_url
=
""
)
{
{
$memkey
=
md5
(
$str
);
$memkey
=
md5
(
$str
);
if
(
$_COOKIE
[
'update'
]){
$this
->
mc
->
delete
(
$memkey
);
}
$cache
=
$this
->
mc
->
get
(
$memkey
);
$cache
=
$this
->
mc
->
get
(
$memkey
);
//$this->mc->delete($memkey);
//$this->mc->delete($memkey);
if
(
$cache
[
'isok'
]
==
1
)
if
(
$cache
[
'isok'
]
==
1
)
{
{
...
...
new_admincp/applications/zsb/models/statistics_model.php
View file @
c76e0382
...
@@ -896,6 +896,10 @@ class Statistics_model extends MY_Model
...
@@ -896,6 +896,10 @@ class Statistics_model extends MY_Model
if
(
$uid
>
0
)
if
(
$uid
>
0
)
{
{
$mem_key
=
$this
->
_mem_key
.
'_get_broker_clickdata_3_'
.
$uid
.
'_'
.
$start_day
.
'_'
.
$end_day
.
'_'
.
$order_key
.
'_'
.
$order_by
;
$mem_key
=
$this
->
_mem_key
.
'_get_broker_clickdata_3_'
.
$uid
.
'_'
.
$start_day
.
'_'
.
$end_day
.
'_'
.
$order_key
.
'_'
.
$order_by
;
if
(
$_COOKIE
[
'update'
]){
$this
->
mc
->
delete
(
$mem_key
);
}
$cache
=
$this
->
mc
->
get
(
$mem_key
);
$cache
=
$this
->
mc
->
get
(
$mem_key
);
if
(
isset
(
$cache
[
'is_ok'
])
&&
$cache
[
'is_ok'
]
==
1
)
if
(
isset
(
$cache
[
'is_ok'
])
&&
$cache
[
'is_ok'
]
==
1
)
{
{
...
...
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