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
326 B
19 lines
326 B
2 years ago
|
package security
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
"github.com/alimy/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()
|
||
|
}
|
||
|
}
|