Browse Source

报错信息修改

ziwen 2 years ago
parent
commit
42c1888fde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controller/pc/pc.go

+ 1 - 1
controller/pc/pc.go

@@ -492,7 +492,7 @@ func WechatLogin(c *gin.Context) {
 	fmt.Println("token:", item.Errmsg)
 	fmt.Println("token:", item.Errcode)
 	if item.Errcode != 0 {
-		response.Fail(err.Error(), c)
+		response.Fail(item.Errmsg, c)
 		return
 	}