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
92713dd2
Commit
92713dd2
authored
Oct 11, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加相关api
parent
3df8ecc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
ucenter_elascontent.php
example/ucenter_elascontent.php
+22
-0
ElasContent.php
src/ucenter/ElasContent.php
+45
-0
No files found.
example/ucenter_elascontent.php
0 → 100644
View file @
92713dd2
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/10/2017
* Time: 5:14 PM
*/
use
internalApi\ucenter\ElasContent
;
require
__DIR__
.
'/_init.php'
;
ElasContent
::
setDebug
();
$id
=
1
;
$title
=
'131212312312231313'
;
$content
=
'13123'
;
$pic
=
'12321'
;
$from
=
'bbs'
;
$createAt
=
1762734
;
$extra
=
[
'a'
=>
2222
];
//ElasContent::replace($id,$title,$content,$pic,$from,$createAt,$extra);
ElasContent
::
delete
(
1
);
\ No newline at end of file
src/ucenter/ElasContent.php
0 → 100644
View file @
92713dd2
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/10/2017
* Time: 5:03 PM
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
ElasContent
extends
Client
{
/**
* @param $id
* @param $title
* @param $contentData
* @param $pic
* @param $from bbs xue s
* @param $createdAt
* @param $extra
* @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'
));
}
/**
* delete
* @param $id
* @return mixed
*/
public
static
function
delete
(
$id
){
return
self
::
call
(
'elasContent.delete'
,
compact
(
'id'
));
}
}
\ No newline at end of file
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