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
12d052e8
Commit
12d052e8
authored
Oct 13, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加相关api注释
parent
85991b8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ucenter_elascontent.php
example/ucenter_elascontent.php
+2
-1
ElasContent.php
src/ucenter/ElasContent.php
+3
-2
No files found.
example/ucenter_elascontent.php
View file @
12d052e8
...
...
@@ -15,8 +15,9 @@ $id = 1;
$title
=
'131212312312231313'
;
$content
=
'13123'
;
$pic
=
'12321'
;
$url
=
'12312'
;
$from
=
'bbs'
;
$createAt
=
1762734
;
$extra
=
[
'a'
=>
2222
];
//ElasContent::replace($id,$title,$content,$pic,$from,$createAt,$extra);
//ElasContent::replace($id,$title,$content,$pic,$
url,$
from,$createAt,$extra);
ElasContent
::
delete
(
1
,
'bbs'
);
\ No newline at end of file
src/ucenter/ElasContent.php
View file @
12d052e8
...
...
@@ -20,13 +20,14 @@ class ElasContent extends Client
* @param $title //标题
* @param $contentData //纯文本内容
* @param $pic //图片 没有预览图去文本第一章
* @param $url
* @param $from bbs xue s
* @param $createdAt //创建时间
* @param $extra //额外属性 array
* @return mixed
*/
public
static
function
replace
(
$id
,
$title
,
$contentData
,
$pic
,
$from
,
$createdAt
,
$extra
){
return
self
::
call
(
'elasContent.replace'
,
compact
(
'id'
,
'title'
,
'contentData'
,
'pic'
,
'from'
,
'createdAt'
,
'extra'
));
public
static
function
replace
(
$id
,
$title
,
$contentData
,
$pic
,
$url
,
$from
,
$createdAt
,
$extra
){
return
self
::
call
(
'elasContent.replace'
,
compact
(
'id'
,
'title'
,
'contentData'
,
'pic'
,
'
url'
,
'
from'
,
'createdAt'
,
'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