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
a6e64a9a
Commit
a6e64a9a
authored
Sep 27, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
0a1ff720
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Message.php
application/controllers/Message.php
+4
-2
No files found.
application/controllers/Message.php
View file @
a6e64a9a
...
@@ -21,9 +21,11 @@ class MessageController extends \Our\Controller_AbstractApi {
...
@@ -21,9 +21,11 @@ class MessageController extends \Our\Controller_AbstractApi {
$pageIndex
=
isset
(
$this
->
req
[
'data'
][
'pageIndex'
])
?
$this
->
req
[
'data'
][
'pageIndex'
]
:
0
;
$pageIndex
=
isset
(
$this
->
req
[
'data'
][
'pageIndex'
])
?
$this
->
req
[
'data'
][
'pageIndex'
]
:
0
;
$pageSize
=
isset
(
$this
->
req
[
'data'
][
'pageSize'
])
?
$this
->
req
[
'data'
][
'pageSize'
]
:
20
;
$pageSize
=
isset
(
$this
->
req
[
'data'
][
'pageSize'
])
?
$this
->
req
[
'data'
][
'pageSize'
]
:
20
;
if
(
!
empty
(
$this
->
req
[
'data'
][
'toType'
])){
if
(
!
empty
(
$this
->
req
[
'data'
][
'toType'
])){
$returnMessage
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db15\MessageRedisModel
::
getInstance
(),
array
(
&
$this
->
messageService
,
'getMemberList'
),
array
(
$this
->
memberId
,
$this
->
req
[
'data'
][
'fromType'
],
$this
->
req
[
'data'
][
'toId'
],
$this
->
req
[
'data'
][
'toType'
],
'*'
,
$pageIndex
,
$pageSize
),
\Our\ApiConst
::
tenSecond
,
array
(
$this
->
memberId
));
$returnMessage
=
$this
->
messageService
->
getMemberList
(
$this
->
memberId
,
$this
->
req
[
'data'
][
'fromType'
],
$this
->
req
[
'data'
][
'toId'
],
$this
->
req
[
'data'
][
'toType'
],
'*'
,
$pageIndex
,
$pageSize
);
// $returnMessage=\Our\RedisHelper::cachedFunction(\Redis\Db15\MessageRedisModel::getInstance(),array(&$this->messageService, 'getMemberList'),array($this->memberId,$this->req['data']['fromType'],$this->req['data']['toId'],$this->req['data']['toType'],'*',$pageIndex,$pageSize),\Our\ApiConst::oneHour,array($this->memberId));
}
else
{
}
else
{
$returnMessage
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db15\MessageRedisModel
::
getInstance
(),
array
(
&
$this
->
messageService
,
'getList'
),
array
(
$this
->
memberId
,
$pageIndex
,
$pageSize
),
\Our\ApiConst
::
tenSecond
,
array
(
$this
->
memberId
));
$returnMessage
=
$this
->
messageService
->
getList
(
$this
->
memberId
,
$pageIndex
,
$pageSize
);
// $returnMessage=\Our\RedisHelper::cachedFunction(\Redis\Db15\MessageRedisModel::getInstance(),array(&$this->messageService, 'getList'),array($this->memberId,$pageIndex,$pageSize),\Our\ApiConst::oneHour,array($this->memberId));
if
(
$returnMessage
){
if
(
$returnMessage
){
$returnMessage
[
'users'
]
=
$returnMessage
[
'list'
];
$returnMessage
[
'users'
]
=
$returnMessage
[
'list'
];
}
else
{
}
else
{
...
...
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