dever 6 years ago
parent
commit
5143db6040
2 changed files with 2 additions and 2 deletions
  1. 1 1
      act/lib/Comment.php
  2. 1 1
      act/lib/Feedback.php

+ 1 - 1
act/lib/Comment.php

@@ -57,7 +57,7 @@ class Comment
         $where['uid'] = $uid;
         $where['data_id'] = $id;
         $where['type'] = $type;
-        $where['content'] = $content;
+        $where['content'] = Dever::emoji($content);
         $table = $this->table($type);
         $info = Dever::db($table)->one($where);
         if (!$info) {

+ 1 - 1
act/lib/Feedback.php

@@ -12,7 +12,7 @@ class Feedback
         $where['uid'] = $uid;
         $where['username'] = $username;
         $where['name'] = $name;
-        $where['content'] = $content;
+        $where['content'] = Dever::emoji($content);
         $table = 'act/feedback';
         $info = Dever::db($table)->one($where);
         if (!$info) {