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.
18 lines
348 B
18 lines
348 B
package sysCloud
|
|
|
|
import (
|
|
"GoClouds/cloud"
|
|
ruisUtil "github.com/mgr9525/go-ruisutil"
|
|
)
|
|
|
|
func Login(name, pass string) (int, string) {
|
|
pars := ruisUtil.NewMap()
|
|
pars.Set("name", name)
|
|
pars.Set("pass", pass)
|
|
code, uid, err := cloud.SysCloudExec.ExecJSON("/user/login", pars)
|
|
if err != nil {
|
|
return 0, "网络错误"
|
|
}
|
|
|
|
return code, uid
|
|
}
|