14 lines
213 B
Go
14 lines
213 B
Go
|
package dw_sdk
|
||
|
|
||
|
const (
|
||
|
DEV_URL = "https://openapi-sandbox.dewu.com"
|
||
|
Online_URL = "https://openapi.dewu.com"
|
||
|
)
|
||
|
|
||
|
func GetUrl(env string) string {
|
||
|
if env == "online" {
|
||
|
return Online_URL
|
||
|
}
|
||
|
return DEV_URL
|
||
|
}
|