Просмотр исходного кода

增加海商报业可出入金时间段配置

zhou.xiaoning 4 лет назад
Родитель
Сommit
a552482a90
6 измененных файлов с 5 добавлено и 14 удалено
  1. 2 1
      config/cfg.j2
  2. 2 1
      config/cfg.json
  3. 0 4
      docs/docs.go
  4. 0 4
      docs/swagger.json
  5. 0 3
      docs/swagger.yaml
  6. 1 1
      models/account.go

+ 2 - 1
config/cfg.j2

@@ -12,6 +12,7 @@
         "quotePort": "{{quote_agent_listen_port}}",
         "tradeHost": "{{access_internet_addr}}",
         "tradePort": "{{access_listen_port}}",
-        "newsUrl": "{{news_url}}"
+        "newsUrl": "{{news_url}}",
+        "hsbyBankSignZone": "08:00-18:00"
         }
 }

+ 2 - 1
config/cfg.json

@@ -12,6 +12,7 @@
         "quotePort": "5002",
         "tradeHost": "192.168.31.104",
         "tradePort": "5001",
-        "newsUrl": "http://www.baidu.com"
+        "newsUrl": "http://www.baidu.com",
+        "hsbyBankSignZone": "08:00-18:00"
     }
 }

+ 0 - 4
docs/docs.go

@@ -14195,10 +14195,6 @@ var doc = `{
                     "description": "修改时间",
                     "type": "string"
                 },
-                "password": {
-                    "description": "登陆密码",
-                    "type": "string"
-                },
                 "pwdwrongcount": {
                     "description": "密码错误次数",
                     "type": "integer"

+ 0 - 4
docs/swagger.json

@@ -14179,10 +14179,6 @@
                     "description": "修改时间",
                     "type": "string"
                 },
-                "password": {
-                    "description": "登陆密码",
-                    "type": "string"
-                },
                 "pwdwrongcount": {
                     "description": "密码错误次数",
                     "type": "integer"

+ 0 - 3
docs/swagger.yaml

@@ -5949,9 +5949,6 @@ definitions:
       modifytime:
         description: 修改时间
         type: string
-      password:
-        description: 登陆密码
-        type: string
       pwdwrongcount:
         description: 密码错误次数
         type: integer

+ 1 - 1
models/account.go

@@ -16,7 +16,7 @@ type Loginaccount struct {
 	Loginid            int64     `json:"loginid"  xorm:"'LOGINID'" binding:"required"`    // 登陆账号
 	Userid             int64     `json:"userid"  xorm:"'USERID'"`                         // 用户ID
 	Loginfailnum       int32     `json:"loginfailnum"  xorm:"'LOGINFAILNUM'"`             // 连续登录失败次数(登录成功时清零)
-	Password           string    `json:"password"  xorm:"'PASSWORD'"`                     // 登陆密码
+	Password           string    `json:"-"  xorm:"'PASSWORD'"`                            // 登陆密码
 	Loginusertype      int32     `json:"loginusertype"  xorm:"'LOGINUSERTYPE'"`           // 登录账号类型 - 1:投资者 2:机构交易员
 	Loginstatus        int32     `json:"loginstatus"  xorm:"'LOGINSTATUS'"`               // 登录账号状态 1:正常 2:冻结 3:无效
 	Lastlogintime      time.Time `json:"lastlogintime"  xorm:"'LASTLOGINTIME'"`           // 最新登录时间