Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
5b52380b
Commit
5b52380b
authored
Jun 07, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
39eb6847
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
apps/home/Lib/Action/HomeAction.class.php
+21
-3
No files found.
apps/home/Lib/Action/HomeAction.class.php
View file @
5b52380b
...
@@ -745,8 +745,6 @@ class HomeAction extends UserAction
...
@@ -745,8 +745,6 @@ class HomeAction extends UserAction
unset
(
$val
);
unset
(
$val
);
}
}
$this
->
assign
(
"data"
,
$data
);
$this
->
assign
(
"data"
,
$data
);
//如果是ajax并且为h5访问 直接输出后边的数据
//如果是ajax并且为h5访问 直接输出后边的数据
...
@@ -756,10 +754,30 @@ class HomeAction extends UserAction
...
@@ -756,10 +754,30 @@ class HomeAction extends UserAction
echo
json_encode
(
$data
);
echo
json_encode
(
$data
);
exit
();
exit
();
}
}
$this
->
display
();
$this
->
display
();
}
}
public
function
collect2
()
{
$data
=
[];
$map
[
'uid'
]
=
intval
(
$_GET
[
'uid'
])
?
intval
(
$_GET
[
'uid'
])
:
intval
(
$this
->
mid
);
$list
=
D
(
"ZyCollection"
,
'classroom'
)
->
where
([
'source_table_name'
=>
'exams_paper'
,
'uid'
=>
$map
[
'uid'
]])
->
order
(
'ctime desc'
)
->
findpage
();
var_dump
(
$list
);
die
;
if
(
$list
[
'data'
])
{
$mod
=
D
(
"ExamsQuestion"
,
'exams'
);
foreach
(
$list
[
'data'
]
as
&
$val
)
{
$val
[
'question_info'
]
=
$mod
->
getQuestionById
(
$val
[
'source_id'
]);
}
}
echo
json_encode
(
$data
);
exit
();
}
/**
/**
* 会员中心学习次数--列表处理
* 会员中心学习次数--列表处理
* @return void
* @return void
...
...
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