|
@@ -21,6 +21,9 @@ class Topicdongtai extends Api
|
|
|
$this->error(__('Invalid parameters'));
|
|
|
}
|
|
|
|
|
|
+ //关键字替换
|
|
|
+ $content = Keyworld::sensitive($content);
|
|
|
+
|
|
|
$data = [
|
|
|
'topic_id' => $topic_id,
|
|
|
'user_id' => $this->auth->id,
|
|
@@ -170,6 +173,9 @@ class Topicdongtai extends Api
|
|
|
$this->error();
|
|
|
}
|
|
|
|
|
|
+ //关键字替换
|
|
|
+ $content = Keyworld::sensitive($content);
|
|
|
+
|
|
|
//判断
|
|
|
if($level == 2 && $floor == 0){
|
|
|
$this->error('楼层错误');
|