|
@@ -41,9 +41,10 @@ func Login(context *admin.Context) (interface{}, error) {
|
|
|
}
|
|
|
userIp := clientIP(context.HttpRequest)
|
|
|
if param.LoginType == "0" {
|
|
|
- status := map[string]interface{}{"status": 1}
|
|
|
+ status := map[string]interface{}{"status": 1, "ip": ""}
|
|
|
for _, v := range strings.Split(SysConfigs.CompanyIp, ",") {
|
|
|
if strings.HasPrefix(userIp, v) {
|
|
|
+ status["ip"] = userIp
|
|
|
return status, nil
|
|
|
}
|
|
|
}
|