|
@@ -9,7 +9,6 @@ import (
|
|
|
"github.com/runningwater/gohub/bootstrap"
|
|
"github.com/runningwater/gohub/bootstrap"
|
|
|
appConfig "github.com/runningwater/gohub/config"
|
|
appConfig "github.com/runningwater/gohub/config"
|
|
|
"github.com/runningwater/gohub/pkg/config"
|
|
"github.com/runningwater/gohub/pkg/config"
|
|
|
- "github.com/runningwater/gohub/pkg/verifycode"
|
|
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
@@ -44,7 +43,7 @@ func main() {
|
|
|
bootstrap.SetupRoute(r)
|
|
bootstrap.SetupRoute(r)
|
|
|
|
|
|
|
|
// 测试发送短信
|
|
// 测试发送短信
|
|
|
- verifycode.NewVerifyCode().SendSMS("15968875425")
|
|
|
|
|
|
|
+ // verifycode.NewVerifyCode().SendSMS("15968875425")
|
|
|
|
|
|
|
|
// 启动 HTTP 服务,监听在我们指定的端口上
|
|
// 启动 HTTP 服务,监听在我们指定的端口上
|
|
|
err := r.Run(":" + config.Get("app.port"))
|
|
err := r.Run(":" + config.Get("app.port"))
|