mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
332 B
19 lines
332 B
package security
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/alimy/tryst/cfg"
|
|
"github.com/rocboss/paopao-ce/internal/core"
|
|
)
|
|
|
|
func NewPhoneVerifyService() core.PhoneVerifyService {
|
|
smsVendor, _ := cfg.Val("sms")
|
|
switch strings.ToLower(smsVendor) {
|
|
case "smsjuhe":
|
|
return newJuheSmsServant()
|
|
default:
|
|
return newJuheSmsServant()
|
|
}
|
|
}
|