Skip to content

Commit

Permalink
refactor:change standardized URL
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Jun 12, 2024
1 parent 2aed1fd commit 19cfbb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/push/offlinepush/fcm/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ func NewClient(pushConf *config.Push, cache cache.ThirdCache, fcmConfigPath stri
// with file path
credentialsFilePath := filepath.Join(fcmConfigPath, pushConf.FCM.FilePath)
opt = option.WithCredentialsFile(credentialsFilePath)
case len(pushConf.FCM.AuthUrl) != 0:
case len(pushConf.FCM.AuthURL) != 0:
// with authentication URL
client := httputil.NewHTTPClient(httputil.NewClientConfig())
resp, err := client.Get(pushConf.FCM.AuthUrl)
resp, err := client.Get(pushConf.FCM.AuthURL)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ type Push struct {
} `mapstructure:"geTui"`
FCM struct {
FilePath string `mapstructure:"filePath"`
AuthUrl string `mapstructure:"authURL"`
AuthURL string `mapstructure:"authURL"`
} `mapstructure:"fcm"`
JPNS struct {
AppKey string `mapstructure:"appKey"`
Expand Down

0 comments on commit 19cfbb3

Please sign in to comment.