Browse Source

朋友圈列表优化

author
wanghongjun 6 months ago
parent
commit
9adb794140
  1. 5
      app/enterprise/controller/Posts.php

5
app/enterprise/controller/Posts.php

@ -28,7 +28,7 @@ class Posts extends BaseController
public function index()
{
$where = [];
$whereOr = ' p.user_id = ' . $this->uid;
$whereOr = ' (p.delete_time = 0 and p.privacy > 0) and p.user_id = ' . $this->uid;
$friendIds = Friend::getFriendIds($this->uid);
@ -162,8 +162,7 @@ class Posts extends BaseController
throw new \Exception('');
}
$exists->delete_time = time();
$exists->save();
PostsModel::update(['delete_time' => time()], ['id' => $posts_id]);
return success(lang('system.success'));
} catch (\Exception $e) {
return warning(lang('system.error'));

Loading…
Cancel
Save