dever 6 years ago
parent
commit
fe633af8d3
2 changed files with 3 additions and 3 deletions
  1. 2 2
      doc/apidoc.php
  2. 1 1
      main/src/View.php

+ 2 - 2
doc/apidoc.php

@@ -223,9 +223,9 @@
  */
 
 /**
- * @api {get} wonderful/main/?l=view.content 获取富文本内容
+ * @api {get} wonderful/main/?l=view.getHtml 获取富文本内容
  * @apiVersion 1.0.0
- * @apiName view.content
+ * @apiName view.getHtml
  * @apiGroup App
  *
  * @apiDescription 获取富文本内容

+ 1 - 1
main/src/View.php

@@ -148,7 +148,7 @@ class View extends Core
     }
 
     # 根据类型,获取详情的html页面
-    public function content()
+    public function getHtml()
     {
         $type = Dever::input('type');
         $id = Dever::input('id');