1、textverfied 获取号码之后取消自动续费。通过程序定时续费

This commit is contained in:
2025-11-18 09:16:43 +08:00
parent 38ec94254b
commit da1b37a398
12 changed files with 400 additions and 46 deletions

View File

@ -10,16 +10,17 @@ import (
// 字典 key 可以配置到 自动任务 调用目标 中;
func InitJob() {
jobList = map[string]JobExec{
"ExamplesOne": ExamplesOne{},
"TrxPaymentJob": TrxPaymentJob{},
"CliProxyTrafficsJob": CliProxyJob{},
"RenewalJob": RenewalJob{}, //长效ip定时续期
"ExpireProxyJob": ExpireProxyJob{}, //定时过期代理
"CleanExpiredOrderJob": CleanExpiredOrderJob{}, //清理过期订单
"SmsJob": SmsJob{}, //短信定时查询验证码
"SmsRenewalJob": SmsRenewalJob{}, //短信定时自动续期
"AutoDeleteJob": AutoDeleteJob{}, //定时删除任务
"SmsPriceJob": SmsPriceJob{}, // 短信价格定时同步
"ExamplesOne": ExamplesOne{},
"TrxPaymentJob": TrxPaymentJob{},
"CliProxyTrafficsJob": CliProxyJob{},
"RenewalJob": RenewalJob{}, //长效ip定时续期
"ExpireProxyJob": ExpireProxyJob{}, //定时过期代理
"CleanExpiredOrderJob": CleanExpiredOrderJob{}, //清理过期订单
"SmsJob": SmsJob{}, //短信定时查询验证码
"SmsRenewalJob": SmsRenewalJob{}, //短信定时自动续期
"AutoDeleteJob": AutoDeleteJob{}, //定时删除任务
"SmsPriceJob": SmsPriceJob{}, // 短信价格定时同步
"SmsCancelPlatformAuto": SmsCancelPlatformAuto{}, // 短信定时取消自动续期
// ...
}
}

View File

@ -8,6 +8,7 @@ import (
type SmsJob struct{}
type SmsPriceJob struct{}
type SmsCancelPlatformAuto struct{}
// 定时查询结果
func (j SmsJob) Exec(args interface{}) error {
@ -31,3 +32,11 @@ func (j SmsPriceJob) Exec(args interface{}) error {
return nil
}
func (j SmsCancelPlatformAuto) Exec(args interface{}) error {
phoneService := service.SmsPhone{}
phoneService.Orm = GetDb()
phoneService.Log = logger.NewHelper(logger.DefaultLogger)
return phoneService.SetManualRenewal()
}