songxingwei пре 2 година
родитељ
комит
9615ababaa
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      app/data/controller/api/auth/Center.php

+ 2 - 0
app/data/controller/api/auth/Center.php

@@ -13,6 +13,7 @@ use think\admin\Controller;
 use hg\apidoc\annotation\Title;
 use hg\apidoc\annotation\Method;
 use hg\apidoc\annotation\Param;
+use hg\apidoc\annotation\Header;
 use hg\apidoc\annotation\Returned;
 
 /**
@@ -50,6 +51,7 @@ class Center extends Auth
     /**
      * @Title("获取用户资料")
      * @Method("post")
+     * @Header("api-name",desc="访问类型")
      * @Returned("token.token",desc="token")
      */
     public function get()