Browse Source

fix 显示地址

stanley-king 8 years ago
parent
commit
645ec3bd0e
1 changed files with 8 additions and 2 deletions
  1. 8 2
      helper/special_helper.php

+ 8 - 2
helper/special_helper.php

@@ -427,10 +427,16 @@ class special_formater
     {
         foreach($items as &$item)
         {
-            static $types = array('url','innerurl','video');
-            if(in_array($item['type'],$types)){
+            static $action_types = array('url','video');
+            static $show_types = array('webview','video');
+
+            if(in_array($item['type'],$action_types)){
                 $item['data'] =  htmlspecialchars_decode($item['data']);
             }
+
+            if(in_array($item['show_type'],$show_types)){
+                $item['show_data'] =  htmlspecialchars_decode($item['show_data']);
+            }
         }
     }