Commit fb3d92fb authored by sugar's avatar sugar

首页样谱

parent 49d75190
Pipeline #727 canceled with stages
......@@ -24,6 +24,31 @@ class Friend extends Api{
protected $noNeedRight = ['*'];
/**
* 热门圈子列表
*/
public function createCircle(){
$title = xss_clean($this->request->post('title',''));//圈子名称
$content = xss_clean($this->request->post('content',''));//圈子标语
$addr = xss_clean($this->request->post('addr',''));//圈子地址
$avatar = $this->request->post('avatar','');//圈子头像
$surname = $this->request->post('surname','');//圈子姓氏
$fastim = Db::name('fastim_user')->where(['user_id' =>$this->auth->id])->find();
$data = [
'imuser_id' =>$fastim['id'],
'user_id' =>$this->auth->id,
'content' =>$content,
'title' =>$title,
'content' =>$content,
'avatar' =>$avatar,
'surname' =>$surname,
'create_time' =>time(),
'addr' =>$addr
];
$res = HotcircleModel::create($data);
$this->success('创建成功');
}
/**
* 热门圈子列表
*/
......
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