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
a92390fe
Commit
a92390fe
authored
May 27, 2019
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
天elascontent fetech
parent
19caab4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
ucenter_elascontent.php
example/ucenter_elascontent.php
+8
-6
ElasContent.php
src/ucenter/ElasContent.php
+11
-0
No files found.
example/ucenter_elascontent.php
View file @
a92390fe
...
@@ -11,13 +11,15 @@ use internalApi\ucenter\ElasContent;
...
@@ -11,13 +11,15 @@ use internalApi\ucenter\ElasContent;
require
__DIR__
.
'/_init.php'
;
require
__DIR__
.
'/_init.php'
;
ElasContent
::
setDebug
();
ElasContent
::
setDebug
();
ElasContent
::
newreplace
(
5
,
"测试标题1"
,
"内容"
,
[],
1
,
'http://www.baidu.com'
,
'bbs'
,
10
,
[
'洗衣机'
,
],
8
,
9
,
1551601307
,
38
,
1551601307
,
[
$data
=
ElasContent
::
fetch
(
546
,
'bbs'
);
'a'
=>
1
,
//ElasContent::newreplace(5, "测试标题1", "内容", [], 1,'http://www.baidu.com', 'bbs', 10, [
'b'
=>
2
// '洗衣机',
]);
//
//], 8, 9, 1551601307, 38, 1551601307, [
// 'a' => 1,
// 'b' => 2
//]);
//ElasContent::update(5,'bbs',[
//ElasContent::update(5,'bbs',[
// 'title'=>'夏彬 修改',
// 'title'=>'夏彬 修改',
// 'tags'=>[
// 'tags'=>[
...
...
src/ucenter/ElasContent.php
View file @
a92390fe
...
@@ -89,7 +89,18 @@ class ElasContent extends Client
...
@@ -89,7 +89,18 @@ class ElasContent extends Client
*/
*/
public
static
function
delete
(
$id
,
$from
){
public
static
function
delete
(
$id
,
$from
){
return
self
::
call
(
'elasContent.delete'
,
compact
(
'id'
,
'from'
));
return
self
::
call
(
'elasContent.delete'
,
compact
(
'id'
,
'from'
));
}
/**
* 获取数据
* @param $id
* @param $from
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
fetch
(
$id
,
$from
){
return
self
::
call
(
'elasContent.fetch'
,
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