|
|
|
@ -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')); |
|
|
|
|