Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
6de5f5f3ab
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
|
@ -350,6 +351,8 @@ func getUser(token string) (*conf.User, error) {
|
|||
}
|
||||
|
||||
func UseActivationcode(code string) (err error) {
|
||||
code = strings.TrimSpace(code)
|
||||
code = gulu.Str.RemoveInvisible(code)
|
||||
requestResult := gulu.Ret.NewResult()
|
||||
request := httpclient.NewCloudRequest()
|
||||
_, err = request.
|
||||
|
@ -368,6 +371,8 @@ func UseActivationcode(code string) (err error) {
|
|||
}
|
||||
|
||||
func CheckActivationcode(code string) (retCode int, msg string) {
|
||||
code = strings.TrimSpace(code)
|
||||
code = gulu.Str.RemoveInvisible(code)
|
||||
retCode = 1
|
||||
requestResult := gulu.Ret.NewResult()
|
||||
request := httpclient.NewCloudRequest()
|
||||
|
|
Loading…
Add table
Reference in a new issue