1、自动续费
This commit is contained in:
19
app/jobs/proxy_job_test.go
Normal file
19
app/jobs/proxy_job_test.go
Normal file
@ -0,0 +1,19 @@
|
||||
package jobs
|
||||
|
||||
import (
|
||||
"go-admin/config"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestProxyJob(t *testing.T) {
|
||||
initSetting()
|
||||
config.ExtConfig.CliproxyUrl = "https://f.cliproxy.com"
|
||||
config.ExtConfig.CliproxyApiUrl = "https://api.cliproxy.com"
|
||||
config.ExtConfig.DaisysmsUrl = "https://daisysms.com/stubs/handler_api.php"
|
||||
|
||||
renewJob := RenewalJob{}
|
||||
|
||||
if err := renewJob.Exec(nil); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user