Commit a92390fe authored by 夏彬's avatar 夏彬

天elascontent fetech

parent 19caab4d
...@@ -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'=>[
......
...@@ -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'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment