|
@@ -16,7 +16,7 @@ var cwsUrl string
|
|
var cwsTimeOut time.Duration
|
|
var cwsTimeOut time.Duration
|
|
|
|
|
|
func Init(url string, timeout time.Duration) error {
|
|
func Init(url string, timeout time.Duration) error {
|
|
- if utils.IsStringEmpty(cwsUrl) {
|
|
|
|
|
|
+ if utils.IsStringEmpty(url) {
|
|
return errors.New("未配置CWS地址")
|
|
return errors.New("未配置CWS地址")
|
|
}
|
|
}
|
|
|
|
|