1、textverfied 获取号码之后取消自动续费。通过程序定时续费
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user