mirror of
https://github.com/elyby/chrly.git
synced 2024-12-23 05:30:06 +05:30
Merge branch 'develop'
This commit is contained in:
commit
a661f9aac3
@ -1,7 +1,7 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis:3.0-alpine
|
image: redis:3.2-32bit
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/redis:/data
|
- ./data/redis:/data
|
||||||
|
|
||||||
|
2
lib/external/accounts/base.go
vendored
2
lib/external/accounts/base.go
vendored
@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
const domain = "https://dev.account.ely.by"
|
const domain = "https://account.ely.by"
|
||||||
|
|
||||||
var Client = &http.Client{}
|
var Client = &http.Client{}
|
||||||
|
|
||||||
|
@ -42,8 +42,10 @@ func _getByField(field string, value string) (accounts.AccountInfoResponse, erro
|
|||||||
|
|
||||||
func getToken() (*accounts.Token, error) {
|
func getToken() (*accounts.Token, error) {
|
||||||
if token == nil {
|
if token == nil {
|
||||||
|
println("token is nil, trying to obtain new one")
|
||||||
tempToken, err := accounts.GetToken(*AccountsTokenConfig)
|
tempToken, err := accounts.GetToken(*AccountsTokenConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
println("cannot obtain new one token", err)
|
||||||
return &accounts.Token{}, err
|
return &accounts.Token{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user