Fix device id check for iOS

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-04-22 15:32:45 +08:00
parent 15f41d9380
commit 5c4dc3ab39
+3
View File
@@ -126,6 +126,9 @@ func HandshakeHandler(ctx *gin.Context) {
CheckErr(err) CheckErr(err)
randKey := params.Get("randkey") randKey := params.Get("randkey")
deviceId := params.Get("deviceid") deviceId := params.Get("deviceid")
if deviceId == "" {
deviceId = ctx.Request.Header.Get("X-DEVICEID")
}
// fmt.Println(randKey) // fmt.Println(randKey)
// fmt.Println(deviceId) // fmt.Println(deviceId)