Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
056f870d
Commit
056f870d
authored
Sep 19, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
footprint
parent
bde8376a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ApiConst.php
application/library/Our/ApiConst.php
+2
-0
FootprintService.php
application/models/Business/User/FootprintService.php
+1
-1
No files found.
application/library/Our/ApiConst.php
View file @
056f870d
...
@@ -20,6 +20,8 @@ class ApiConst
...
@@ -20,6 +20,8 @@ class ApiConst
//一个小时
//一个小时
const
oneHour
=
3600
;
const
oneHour
=
3600
;
const
twoMinSecond
=
120
;
const
fiveMinutes
=
180
;
const
fiveMinutes
=
180
;
//10分钟秒数
//10分钟秒数
const
tenMinSecond
=
600
;
const
tenMinSecond
=
600
;
...
...
application/models/Business/User/FootprintService.php
100755 → 100644
View file @
056f870d
...
@@ -26,7 +26,7 @@ class FootprintServiceModel extends \Business\AbstractModel
...
@@ -26,7 +26,7 @@ class FootprintServiceModel extends \Business\AbstractModel
$startTime
=
mktime
(
0
,
0
,
0
,
$month
-
2
,
1
,
$year
);
$startTime
=
mktime
(
0
,
0
,
0
,
$month
-
2
,
1
,
$year
);
$endTime
=
mktime
(
0
,
0
,
-
1
,
$month
+
1
,
1
,
$year
);
$endTime
=
mktime
(
0
,
0
,
-
1
,
$month
+
1
,
1
,
$year
);
$browseDAO
=
\DAO\GoodsBrowseModel
::
getInstance
();
$browseDAO
=
\DAO\GoodsBrowseModel
::
getInstance
();
$list
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db4\GoodsBrowserRedisModel
::
getInstance
(),
array
(
&
$browseDAO
,
'getDistinctDate'
),
array
(
$memberId
,
$startTime
,
$endTime
,
$order
),
\Our\ApiConst
::
t
en
MinSecond
,
array
(
$memberId
));
$list
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db4\GoodsBrowserRedisModel
::
getInstance
(),
array
(
&
$browseDAO
,
'getDistinctDate'
),
array
(
$memberId
,
$startTime
,
$endTime
,
$order
),
\Our\ApiConst
::
t
wo
MinSecond
,
array
(
$memberId
));
$date
=
[];
$date
=
[];
if
(
$list
){
if
(
$list
){
$date
=
array_column
(
$list
,
'browsedate'
);
$date
=
array_column
(
$list
,
'browsedate'
);
...
...
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