Skip to content

Commit

Permalink
chore: 修正注释若干
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmx233 committed Aug 15, 2022
1 parent 4de55dc commit e90d58a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.idea/
/Config*
/GoBuilder.bat
/*.bat
/*.log
/autoLogin*
/BitSrunLoginGo*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ import (
func main() {
//具体用法请查看struct注释
if e:=BitSrun.Login(&srunTransfer.Login{
Https: false,
Https: false,
Client: nil,
LoginInfo: srunTransfer.LoginInfo{
Form: &srunTransfer.LoginForm{
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func main() {
//进入守护模式流程
controllers.EnterGuardian()
} else {
//单次登录模式
if global.Config.Settings.Basic.Interfaces == "" { //单网卡
if err := controllers.Login(nil); err != nil {
log.Fatalln("运行出错,状态异常: ", err)
Expand Down
3 changes: 2 additions & 1 deletion v1/transfer/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "net/http"
type LoginForm struct {
Domain string `json:"domain"`
UserName string `json:"username"`
//运营商类型
UserType string `json:"user_type"`
PassWord string `json:"password"`
}
Expand All @@ -22,7 +23,7 @@ type LoginInfo struct {
}

type Login struct {
//调用API时直接访问https URL
//调用 API 时直接访问 https URL
Https bool
//登录参数,不可缺省
LoginInfo LoginInfo
Expand Down

0 comments on commit e90d58a

Please sign in to comment.