mirror of https://github.com/bjdgyc/anylink.git
修复int转int8的问题
This commit is contained in:
parent
a77fe77e79
commit
a8d0a39ca0
|
@ -39,7 +39,8 @@ func UploadUser(file string) error {
|
||||||
limittime, _ := time.Parse("2006-01-02 15:04:05", row[5])
|
limittime, _ := time.Parse("2006-01-02 15:04:05", row[5])
|
||||||
disableOtp, _ := strconv.ParseBool(row[7])
|
disableOtp, _ := strconv.ParseBool(row[7])
|
||||||
group := []string{row[8]}
|
group := []string{row[8]}
|
||||||
status, _ := strconv.Atoi(row[9])
|
s, _ := strconv.Atoi(row[9])
|
||||||
|
status := int8(s)
|
||||||
sendmail, _ := strconv.ParseBool(row[10])
|
sendmail, _ := strconv.ParseBool(row[10])
|
||||||
// createdAt, _ := time.Parse("2006-01-02 03:04:05", row[11])
|
// createdAt, _ := time.Parse("2006-01-02 03:04:05", row[11])
|
||||||
// updatedAt, _ := time.Parse("2006-01-02 03:04:05", row[12])
|
// updatedAt, _ := time.Parse("2006-01-02 03:04:05", row[12])
|
||||||
|
@ -53,7 +54,7 @@ func UploadUser(file string) error {
|
||||||
OtpSecret: row[6],
|
OtpSecret: row[6],
|
||||||
DisableOtp: disableOtp,
|
DisableOtp: disableOtp,
|
||||||
Groups: group,
|
Groups: group,
|
||||||
Status: int8(status),
|
Status: status,
|
||||||
SendEmail: sendmail,
|
SendEmail: sendmail,
|
||||||
// CreatedAt: createdAt,
|
// CreatedAt: createdAt,
|
||||||
// UpdatedAt: updatedAt,
|
// UpdatedAt: updatedAt,
|
||||||
|
|
Loading…
Reference in New Issue