Fix json parsing on iOS client
Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
+1
-1
@@ -428,7 +428,7 @@ func AccountLoginHandler(ctx *gin.Context) {
|
||||
encryptedData64 := base64.StdEncoding.EncodeToString(encryptedData)
|
||||
// fmt.Println(encryptedToken64)
|
||||
|
||||
resp := fmt.Sprintf(`{ "code": %d, "msg": %s, "data": "%s" }`, loginCode, loginMsg, encryptedData64)
|
||||
resp := fmt.Sprintf(`{ "code": %d, "msg": "%s", "data": "%s" }`, loginCode, loginMsg, encryptedData64)
|
||||
|
||||
ctx.Header("Content-Type", "text/html;charset=utf-8")
|
||||
ctx.String(http.StatusOK, resp)
|
||||
|
||||
Reference in New Issue
Block a user