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
f3a03e64
Commit
f3a03e64
authored
May 19, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`试卷`
parent
3475b90c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
apps/classroom/Lib/Action/IndexAction.class.php
+5
-10
No files found.
apps/classroom/Lib/Action/IndexAction.class.php
View file @
f3a03e64
...
...
@@ -49,16 +49,11 @@ class IndexAction extends CommonAction
$map
[
'listingtime'
]
=
[
'LT'
,
time
()];
OPEN_SCHOOL
&&
$map
[
'show_place'
]
=
[
'neq'
,
2
];
$list
=
D
(
'ExamsPaper'
,
'exams'
)
->
getPaperPageList
([],
20
,
'default'
,
true
);
foreach
(
$list
[
'data'
]
as
&
$v
)
{
$v
[
'paper_options'
]
=
D
(
'ExamsPaperOptions'
,
'exams'
)
->
where
([
'exams_paper_id'
=>
$v
[
'exams_paper_id'
]])
->
field
(
'questions_count,score'
)
->
find
();
//getPaperOptionsById($v['exams_paper_id']);
//判断是否需要购买 (管理员)
$is_buy
=
M
(
'exams_paper_order'
)
->
where
([
'uid'
=>
$this
->
mid
,
'paper_id'
=>
$v
[
'exams_paper_id'
]])
->
getField
(
'pay_status'
);
if
(
is_admin
(
$this
->
mid
)
||
$is_buy
==
3
||
$is_buy
==
4
||
$is_buy
==
6
)
{
$v
[
'is_buy'
]
=
1
;
}
$v
[
'exams_user'
]
=
M
(
'exams_users'
)
->
where
([
'exams_paper_id'
=>
$v
[
'exams_paper_id'
]])
->
count
();
}
$list
=
D
(
'ExamsPaper'
,
'exams'
)
->
getPaperPageList
([
'best'
=>
1
,
],
20
,
'default'
,
true
);
var_dump
(
$list
);
die
;
if
(
$config
[
'tpl'
]
==
'theme_x4'
)
{
$info_data
=
$this
->
get_index_one_data
(
$config
[
'item'
]);
...
...
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