Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
db0ab207
Commit
db0ab207
authored
Sep 02, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加extra
parent
3c3b957e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ucenter_message.php
example/ucenter_message.php
+4
-4
Message.php
src/ucenter/Message.php
+2
-2
No files found.
example/ucenter_message.php
View file @
db0ab207
...
...
@@ -19,8 +19,8 @@ Message::setDebug();
//print_r($info);
//
//$info = \internalApi\ucenter\Message::addComment(1,0,0,'bbs','theme',0,0,'
');
//
print_r($info);
$info
=
\internalApi\ucenter\Message
::
addComment
(
1
,
0
,
0
,
'bbs'
,
'theme'
,
0
,
0
,
''
,
'123123
'
);
print_r
(
$info
);
//$info = \internalApi\ucenter\Message::addLike(1,0,0,'bbs','theme',0,0,'');
...
...
@@ -29,5 +29,5 @@ Message::setDebug();
//$info = \internalApi\ucenter\Message::deleteComment(1,'bbs','theme',0);
//print_r($info);
$info
=
\internalApi\ucenter\Message
::
deleteLiked
(
1
,
'bbs'
,
'theme'
,
0
);
print_r
(
$info
);
\ No newline at end of file
//$info = \internalApi\ucenter\Message::deleteLiked(1,'bbs','theme',0);
//print_r($info);
\ No newline at end of file
src/ucenter/Message.php
View file @
db0ab207
...
...
@@ -56,9 +56,9 @@ class Message extends Client
* @param string $replyedComment
* @return mixed
*/
public
static
function
addComment
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$commentId
,
$replyUserId
,
$replyedComment
=
''
)
public
static
function
addComment
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$commentId
,
$replyUserId
,
$replyedComment
=
''
,
$extra
=
''
)
{
return
self
::
call
(
'message.addComment'
,
compact
(
'userId'
,
'title'
,
'sourceUrl'
,
'from'
,
'type'
,
'commentId'
,
'replyUserId'
,
'replyedComment'
));
return
self
::
call
(
'message.addComment'
,
compact
(
'userId'
,
'title'
,
'sourceUrl'
,
'from'
,
'type'
,
'commentId'
,
'replyUserId'
,
'replyedComment'
,
'extra'
));
}
/**
...
...
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