Browse Source

update version 1.0.4

master
luamas 1 year ago
parent
commit
466c48917b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      jetbrain/jetbrains.go

+ 4
- 2
jetbrain/jetbrains.go View File

@@ -49,8 +49,8 @@ func Jetbrains(w http.ResponseWriter, r *http.Request, userName string, prolonga
ResponseCode: "OK",
Salt: salt,
Action: "NONE",
ValidationPeriod: validationPeriod,
ValidationDeadlinePeriod: validationDeadlinePeriod,
ValidationPeriod: 0,
ValidationDeadlinePeriod: -1,
}
var xmlResponse string
isPing, err1 := regexp.MatchString("/rpc/ping.*", r.URL.Path)
@@ -63,6 +63,8 @@ func Jetbrains(w http.ResponseWriter, r *http.Request, userName string, prolonga

isObtainTicket, err2 := regexp.MatchString("/rpc/obtainticket.action", r.URL.Path)
if err2 == nil && isObtainTicket {
jetbrainBaseResponse.ValidationPeriod = 0
jetbrainBaseResponse.ValidationDeadlinePeriod = -1
username := r.FormValue("userName")
if userName != "" {
username = userName


Loading…
Cancel
Save