Browse Source

update user data comment

jflyfox 4 years ago
parent
commit
ae74e02160
1 changed files with 3 additions and 2 deletions
  1. 3 2
      README.md

+ 3 - 2
README.md

@@ -79,7 +79,8 @@ func Login(r *ghttp.Request) (string, interface{}) {
 		r.Response.WriteJson(gtoken.Fail("账号或密码错误."))
 		r.Response.WriteJson(gtoken.Fail("账号或密码错误."))
 		r.ExitAll()
 		r.ExitAll()
 	}
 	}
-
+	
+	// 第一个字段是用户唯一标识,第二个字段是扩展参数user data
 	return username, ""
 	return username, ""
 }
 }
 ```
 ```
@@ -150,7 +151,7 @@ func Login(r *ghttp.Request) (string, interface{}) {
 		r.ExitAll()
 		r.ExitAll()
 	}
 	}
 	
 	
-    // 第一个字段是用户唯一标识,第二个字段是扩展参数user data
+	// 第一个字段是用户唯一标识,第二个字段是扩展参数user data
 	return username, ""
 	return username, ""
 }
 }
 ```
 ```