Browse Source

hr用户点击我要招人不能跳转到招聘页面的bug的处理

hejq 8 years ago
parent
commit
6898ad1b0b

+ 7 - 1
src/main/resources/conf/account.properties

@@ -2,10 +2,16 @@
 sso.app=home
 # token secretkey
 sso.secretkey=0taQcW073Z7G628g5H
-sso.cookie.domain=.ubtob.com
 sso.cookie.secure=false
+
+#ŐýĘ˝
+sso.cookie.domain=.ubtob.com
 sso.login.url=https://account.ubtob.com/sso/login
 
+#ąžľŘ
+#sso.cookie.domain=:8080/home
+#sso.login.url=http://hejq.ubtob.com:8090/account/sso/login
+
 ### account center config,
 account.us.save.url=http://10.10.100.133:8080/api/userspace
 account.user.save.url=http://10.10.100.133:8080/api/user

+ 7 - 12
src/main/webapp/resources/js/common/common.js

@@ -122,19 +122,14 @@ function jobUuzcGet() {
         if(null != data && 'personal' == data.usertype) {
             toastr.error("您的账号为个人账号,不可进行此操作");
         } else if(null != data && 'company' == data.usertype) {
-            if(data.ishr) {//如果是hr直接登录
-                loginJobUuzc(user, loginUrl, 'company');
-                setTimeout(window.location.href = url, 200);
-            } else {// 非hr
-                if(!data.hr) {// 企业不存在hr账号
-                    if(data.manager) {// 管理员停留设置hr
-                        window.location.href = window.location.origin + window.location.pathname + "setHrAccount";
-                    } else {
-                        toastr.error('请通知管理员' + data.managerName + '设置HR账号');
-                    }
-                } else {// 如果企业存在hr
-                    toastr.error('您的账号非HR账号,不可进行此操作');
+            if(!data.hr) {// 企业不存在hr账号
+                if(data.manager) {// 管理员停留设置hr
+                    window.location.href = window.location.origin + window.location.pathname + "setHrAccount";
+                } else {
+                    toastr.error('请通知管理员' + data.managerName + '设置HR账号');
                 }
+            } else {// 如果企业存在hr
+                toastr.error('您的账号非HR账号,不可进行此操作');
             }
         } else if(data.usertype =='hr') {
             loginJobUuzc(user, loginUrl, 'hr');