mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Remove Unicode PUA characters https://github.com/siyuan-note/siyuan/issues/13291
This commit is contained in:
parent
18f68ac715
commit
7446599c0f
18 changed files with 29 additions and 22 deletions
|
|
@ -566,7 +566,7 @@ func getUser(token string) (*conf.User, error) {
|
|||
|
||||
func UseActivationcode(code string) (err error) {
|
||||
code = strings.TrimSpace(code)
|
||||
code = gulu.Str.RemoveInvisible(code)
|
||||
code = util.RemoveInvalid(code)
|
||||
requestResult := gulu.Ret.NewResult()
|
||||
request := httpclient.NewCloudRequest30s()
|
||||
resp, err := request.
|
||||
|
|
@ -590,7 +590,7 @@ func UseActivationcode(code string) (err error) {
|
|||
|
||||
func CheckActivationcode(code string) (retCode int, msg string) {
|
||||
code = strings.TrimSpace(code)
|
||||
code = gulu.Str.RemoveInvisible(code)
|
||||
code = util.RemoveInvalid(code)
|
||||
retCode = 1
|
||||
requestResult := gulu.Ret.NewResult()
|
||||
request := httpclient.NewCloudRequest30s()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue