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
6c16d62f
Commit
6c16d62f
authored
Oct 11, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加相关api
parent
92713dd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ucenter_elascontent.php
example/ucenter_elascontent.php
+1
-1
ElasContent.php
src/ucenter/ElasContent.php
+3
-2
No files found.
example/ucenter_elascontent.php
View file @
6c16d62f
...
@@ -19,4 +19,4 @@ $from = 'bbs';
...
@@ -19,4 +19,4 @@ $from = 'bbs';
$createAt
=
1762734
;
$createAt
=
1762734
;
$extra
=
[
'a'
=>
2222
];
$extra
=
[
'a'
=>
2222
];
//ElasContent::replace($id,$title,$content,$pic,$from,$createAt,$extra);
//ElasContent::replace($id,$title,$content,$pic,$from,$createAt,$extra);
ElasContent
::
delete
(
1
);
ElasContent
::
delete
(
1
,
'bbs'
);
\ No newline at end of file
\ No newline at end of file
src/ucenter/ElasContent.php
View file @
6c16d62f
...
@@ -33,10 +33,11 @@ class ElasContent extends Client
...
@@ -33,10 +33,11 @@ class ElasContent extends Client
/**
/**
* delete
* delete
* @param $id
* @param $id
* @param $from bbs xue s
* @return mixed
* @return mixed
*/
*/
public
static
function
delete
(
$id
){
public
static
function
delete
(
$id
,
$from
){
return
self
::
call
(
'elasContent.delete'
,
compact
(
'id'
));
return
self
::
call
(
'elasContent.delete'
,
compact
(
'id'
,
'from'
));
}
}
...
...
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