|
@@ -21,7 +21,24 @@ use hg\apidoc\annotation\Returned;
|
|
|
*/
|
|
|
class Center extends Auth
|
|
|
{
|
|
|
- protected $noNeedLogin=[];
|
|
|
+ protected $noNeedLogin=['upload'];
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户资料
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * @Title("获取用户资料")
|
|
|
+ * @Method("post")
|
|
|
+ * @Header("api-name",type="string",require=1,default="",desc="访问类型")
|
|
|
+ * @Header("api-token",type="string",require=1,default="",desc="token")
|
|
|
+ * @Returned("token.token",desc="token")
|
|
|
+ */
|
|
|
+ public function get()
|
|
|
+ {
|
|
|
+ $this->success('获取用户资料', $this->getUser());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 更新用户资料
|
|
|
*/
|
|
@@ -46,21 +63,6 @@ class Center extends Auth
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取用户资料
|
|
|
- */
|
|
|
- /**
|
|
|
- * @Title("获取用户资料")
|
|
|
- * @Method("post")
|
|
|
- * @Header("api-name",type="string",require=1,default="",desc="访问类型")
|
|
|
- * @Header("api-token",type="string",require=1,default="",desc="token")
|
|
|
- * @Returned("token.token",desc="token")
|
|
|
- */
|
|
|
- public function get()
|
|
|
- {
|
|
|
- $this->success('获取用户资料', $this->getUser());
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* Base64 图片上传
|
|
|
*/
|
|
|
public function image()
|