Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reyun
saasio
Commits
2834b8db
Commit
2834b8db
authored
7 years ago
by
carrieyzzhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.minrow.com:reyun/saasio
parents
166cd2e8
cd46171d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
98 additions
and
21 deletions
+98
-21
LoginController.java
src/main/java/com/reyun/controller/LoginController.java
+61
-2
applicationContext-schedule.xml
src/main/resources/applicationContext-schedule.xml
+3
-3
ToolService.js
src/main/websrc/js/app/ToolService.js
+8
-5
app.js
src/main/websrc/js/app/app.js
+7
-0
menu.js
src/main/websrc/js/collect/menu.js
+3
-3
auth.js
src/main/websrc/js/manage/auth.js
+6
-1
style.scss
src/main/websrc/styles/style.scss
+8
-5
logdump.html
src/main/websrc/template/collect/logdump.html
+2
-2
No files found.
src/main/java/com/reyun/controller/LoginController.java
View file @
2834b8db
...
...
@@ -100,13 +100,73 @@ public class LoginController
}
}
if
(!
account
.
getIsSuperUser
())
{
String
nowDate
=
DateUtil
.
format
(
new
Date
(),
DateUtil
.
C_DATE_PATTON_DEFAULT
);
if
(
account
.
getIsSuperUser
())
{
//母账号
if
(
account
.
getStatus
()
==
0
)
{
//主账号禁用
rtnMap
.
put
(
"msg"
,
"主账号禁用"
);
rtnMap
.
put
(
"code"
,
208
);
return
ResultModel
.
OK
(
rtnMap
);
}
else
if
(
account
.
getStatus
()
==
-
1
)
{
//主账号还没通过审核
rtnMap
.
put
(
"msg"
,
"还没通过审核"
);
rtnMap
.
put
(
"code"
,
210
);
return
ResultModel
.
OK
(
rtnMap
);
}
else
if
(
account
.
getStatus
()
==
-
2
)
{
//主账号还没通过审核
rtnMap
.
put
(
"msg"
,
"还没通过审核"
);
rtnMap
.
put
(
"code"
,
210
);
return
ResultModel
.
OK
(
rtnMap
);
}
//主账号过期
if
(!
StringUtil
.
isEmpty
(
account
.
getPastDate
())
&&
DateUtil
.
compare_date
(
nowDate
,
account
.
getPastDate
())
==
1
)
{
rtnMap
.
put
(
"msg"
,
"主账号过期"
);
rtnMap
.
put
(
"code"
,
206
);
return
ResultModel
.
OK
(
rtnMap
);
}
}
else
{
//子账号
if
(
account
.
getStatus
()
==
0
)
{
// 子账号禁用
rtnMap
.
put
(
"msg"
,
"子账号禁用"
);
rtnMap
.
put
(
"code"
,
203
);
return
ResultModel
.
OK
(
rtnMap
);
}
else
if
(!
account
.
getRoleCategory
().
equals
(
5L
)){
//获取根节点母账号
Account
parent
=
authService
.
findRootParentAccount
(
account
.
getId
());
if
(
parent
.
getStatus
()
==
0
)
{
//子账号所在主账号被禁用
rtnMap
.
put
(
"msg"
,
"子账号所在主账号被禁用"
);
rtnMap
.
put
(
"code"
,
209
);
return
ResultModel
.
OK
(
rtnMap
);
}
else
if
(!
StringUtil
.
isEmpty
(
parent
.
getPastDate
())
&&
DateUtil
.
compare_date
(
nowDate
,
parent
.
getPastDate
())
==
1
)
{
//子账号所在主账号过期
rtnMap
.
put
(
"msg"
,
"子账号所在主账号过期"
);
rtnMap
.
put
(
"code"
,
207
);
return
ResultModel
.
OK
(
rtnMap
);
}
}
//没有控制权限AuthStr没有授权
if
(!
account
.
getRoleCategory
().
equals
(
RoleEnumType
.
MANAGER
.
getKey
()))
{
if
(!
ValidateUtil
.
isValid
(
account
.
getAuthStr
())
||
!
ValidateUtil
.
isValid
(
JSONObject
.
fromObject
(
account
.
getAuthStr
())))
{
rtnMap
.
put
(
"msg"
,
"没有产品权限"
);
rtnMap
.
put
(
"code"
,
202
);
return
ResultModel
.
OK
(
rtnMap
);
}
}
}
...
...
@@ -144,7 +204,6 @@ public class LoginController
catch
(
Exception
e
)
{
logger
.
error
(
"fail to parse ip,"
+
e
.
getMessage
());
}
return
ResultModel
.
OK
(
rtnMap
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/applicationContext-schedule.xml
View file @
2834b8db
...
...
@@ -9,9 +9,9 @@
<description>
调度配置
</description>
<
!--<
bean id="autoCalculateFlow" class="com.reyun.task.AutoCalculateFlow"></bean>
<bean
id=
"autoCalculateFlow"
class=
"com.reyun.task.AutoCalculateFlow"
></bean>
<task:scheduled-tasks>
<task:scheduled ref="autoCalculateFlow" method="run" cron="0 */
10
* * * ?"/>
</task:scheduled-tasks>
-->
<task:scheduled
ref=
"autoCalculateFlow"
method=
"run"
cron=
"0 */
6
* * * ?"
/>
</task:scheduled-tasks>
</beans>
This diff is collapsed.
Click to expand it.
src/main/websrc/js/app/ToolService.js
View file @
2834b8db
...
...
@@ -6,7 +6,7 @@
function
toolservice
(
$rootScope
,
$timeout
,
UtilService
){
var
service
=
{},
that
=
$rootScope
,
rootmenu
=
{
"
admonitor"
:
"广告监测"
,
"behavior"
:
"行为分析"
,
"export"
:
"数据导出"
,
"management"
:
"管理中心
"
},
rootmenu
=
{
"
dataview"
:
"数据概览"
,
"action"
:
"行为分析"
,
"user"
:
"用户分析"
,
"event"
:
"埋点管理"
,
"tool"
:
"工具
"
},
menu
=
{
"custommenu"
:
"行业看单"
,
"eventstats"
:
"事件分析"
,
"funnel"
:
"漏斗转化"
,
"retention"
:
"留存分析"
,
"intelligentpath"
:
"智能路径"
,
"usergroup"
:
"用户分群"
,
"event"
:
"APP事件管理"
,
"profile"
:
"用户属性管理"
,
"logtool"
:
"日志流"
,
"report"
:
"下载报表"
,
"app"
:
"产品中心"
,
"auth"
:
"成员管理"
};
...
...
@@ -404,7 +404,6 @@
//菜单报送数据
service
.
getMenuSubmitData
=
function
(
submenu
){
if
(
$rootScope
.
pagePath
==
"userinfo"
)
return
;
if
(
!
rootmenu
[
$rootScope
.
mainMenu
])
return
;
var
cmids
=
service
.
getCMidInfo
();
var
company
=
service
.
getUser
().
company
;
...
...
@@ -412,21 +411,25 @@
company
=
""
;
}
var
appkey
=
""
,
appcategory
=
""
,
appname
=
""
;
var
appkey
=
""
,
appcategory
=
""
,
appname
=
""
,
rootmenukey
;
if
(
$rootScope
.
appInstance
){
appkey
=
$rootScope
.
appInstance
.
appkey
;
appcategory
=
$rootScope
.
appInstance
.
appGenreName
;
appname
=
$rootScope
.
appInstance
.
name
;
}
if
(
!
submenu
||
submenu
==
''
){
submenu
=
menu
[
$rootScope
.
pagePath
];}
for
(
var
m
in
that
.
meauTree
){
if
(
that
.
meauTree
[
m
].
indexOf
(
$rootScope
.
pagePath
)
>-
1
){
rootmenukey
=
m
;
}
}
var
Uuser
=
UtilService
.
getUser
();
var
params
=
{
appid
:
UtilService
.
getTKAppkey
(),
who
:
Uuser
.
email
,
what
:
"pageview"
,
context
:{
rootmenu
:
rootmenu
[
$rootScope
.
mainMenu
],
//菜单分类
rootmenu
:
rootmenu
[
rootmenukey
],
//菜单分类
menu
:
menu
[
$rootScope
.
pagePath
],
//当前菜单
submenu
:
submenu
,
//子菜单-看单
sessionid
:
UtilService
.
getCookie
(
"JSESSIONID"
),
...
...
This diff is collapsed.
Click to expand it.
src/main/websrc/js/app/app.js
View file @
2834b8db
...
...
@@ -277,12 +277,19 @@
$scope
.
flowKnow
=
true
;
UtilService
.
setCookie
(
"ryioRedCircle"
,
true
,
7
);
var
params
=
{
accountId
:
auid
};
if
(
type
==
'ioAlert'
){
$scope
.
ioAlert
=
false
;
params
.
ioFlow
=
true
;
}
else
if
(
type
==
'ioDateAlert'
){
$scope
.
ioDateAlert
=
false
;
params
.
ioPastTime
=
true
;
}
var
closePM
=
HttpService
.
postInfo
(
"mng/accountRestrict/confirm"
,
params
);
closePM
.
then
(
function
(
data
)
{});
}
$rootScope
.
menuSubmitData
=
function
(
submenu
){
...
...
This diff is collapsed.
Click to expand it.
src/main/websrc/js/collect/menu.js
View file @
2834b8db
...
...
@@ -3,7 +3,7 @@
.
controller
(
"collectCtrl"
,[
"$rootScope"
,
"$scope"
,
"$state"
,
"ToolService"
,
"$timeout"
,
collectCtrl
]);
function
collectCtrl
(
$rootScope
,
$scope
,
$state
,
ToolService
,
$timeout
){
var
meauTree
=
{
$rootScope
.
meauTree
=
{
"dataview"
:[
"custommenu"
],
"action"
:[
"eventstats"
,
"funnel"
,
"retention"
,
"intelligentpath"
],
"user"
:[
"usergroup"
],
...
...
@@ -28,8 +28,8 @@
n
=
n
.
substring
(
0
,
n
);
}
$scope
.
menuCurFlag
=
""
;
for
(
var
k
in
meauTree
){
var
ms
=
meauTree
[
k
];
for
(
var
k
in
$rootScope
.
meauTree
){
var
ms
=
$rootScope
.
meauTree
[
k
];
if
(
ms
.
indexOf
(
n
)
>-
1
){
$scope
.
menuCurFlag
=
k
;
$scope
.
menustatus
[
k
]
=
true
;
...
...
This diff is collapsed.
Click to expand it.
src/main/websrc/js/manage/auth.js
View file @
2834b8db
...
...
@@ -93,9 +93,14 @@
ToolService
.
showLoading
();
var
deletePM
=
HttpService
.
deleteInfo
(
"mng/auth/"
+
$scope
.
delInfo
.
id
+
"/delete"
);
deletePM
.
then
(
function
(){
ToolService
.
showTips
(
"删除成功"
);
ToolService
.
hideLoading
();
if
(
data
){
ToolService
.
showTips
(
"删除成功"
);
$scope
.
query
();
}
else
{
ToolService
.
showTips
(
"该账号已激活,不支持删除,您可以在右侧操作区对账号进行停用。"
);
}
});
}
$scope
.
sendEmailAgain
=
function
(
send
){
...
...
This diff is collapsed.
Click to expand it.
src/main/websrc/styles/style.scss
View file @
2834b8db
...
...
@@ -26,9 +26,12 @@ html,body{
display
:inline-block
;
margin-right
:
3px
;
}
.iconfont.active
,
.active
>
.iconfont
,
.sidebarNav
li
:hover
.iconfont
,
.activemore
>
.iconfont
{
.iconfont.active
,
.active
>
.iconfont
,
.activemore
>
.iconfont
{
color
:
#4186ec
;
}
.sidebarNav
li
:not
(
.activemore
)
:hover
.iconfont
{
color
:
$menulihoverft
;
}
.icon-logo
{
font-size
:
25px
;
color
:
#fff
;
...
...
@@ -1109,8 +1112,8 @@ textarea.iptform{
margin-top
:
15px
;
margin-right
:
18px
;
}
.sidebarNav
li
:hover
a
{
color
:
$menuli
active
ft
;
.sidebarNav
li
:
not
(
.activemore
)
:not
(
.active
)
:
hover
a
{
color
:
$menuli
hover
ft
;
}
.sidebarNav
li
.active
{
background-color
:
$menuliactivebg
;
...
...
@@ -1139,7 +1142,7 @@ textarea.iptform{
color
:
$menuliactiveft
;
}
.sidebarNav
.subli
:hover
{
color
:
$menuliactiveft
;
background
:
$menulihoverbg
;
}
.submenuIcon
{
background
:url
(
..
/
images
/
submenu
.png
)
no-repeat
;
...
...
@@ -6534,7 +6537,7 @@ pre{
color
:
$menuftcolor
;
}
.smallMenu
li
:hover
a
{
color
:
$menuli
active
ft
;
color
:
$menuli
hover
ft
;
}
.sidebarNav
.subli.active
{
border-left-color
:
$menubgcolor
;
...
...
This diff is collapsed.
Click to expand it.
src/main/websrc/template/collect/logdump.html
View file @
2834b8db
...
...
@@ -17,8 +17,8 @@
<tr
ng-repeat=
"info in addrList.val track by $index"
>
<td
ng-repeat=
"col in addrList.columnkey track by $index"
data-clipboard-text=
"{{info[col]}}"
ng-class=
"{'ckhand':$index>0,'copyBtn':$index==1}"
>
{{info[col]}}
</td>
<td
class=
"formOper"
>
<a
class=
"formBtn"
ng-click=
"downFile(info.type)"
ng-if=
"appInstance.regedbutton==true"
>
<span
class=
"downloadIcon active"
></span>
下载
</a>
<a
class=
"formBtn"
ng-click=
"downTips()"
ng-if=
"appInstance.regedbutton!=true"
>
<span
class=
"downloadIcon active"
></span>
下载
</a>
<a
class=
"formBtn"
ng-click=
"downFile(info.type)"
ng-if=
"appInstance.regedbutton==true"
>
下载
</a>
<a
class=
"formBtn"
ng-click=
"downTips()"
ng-if=
"appInstance.regedbutton!=true"
>
下载
</a>
</td>
</tr>
</table>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment