Commit 309c45f7 by 冷斌

fix bug

parent 710bca41
......@@ -65,8 +65,6 @@ class ExamsPaperModel extends Model
*/
protected function haddleData($data = array(),$is_need = 0)
{
var_dump($is_need);
die;
if ($data) {
$subjectModel = D('ExamsSubject', 'exams');
foreach ($data as $key => $v) {
......@@ -76,7 +74,7 @@ class ExamsPaperModel extends Model
$data[$key]['level_title'] = $this->getLevelTitle($v['level']);
$data[$key]['is_buy'] = $this->isBuy($v['exams_paper_id'], $this->mid);
if ($data[$key]['is_buy'] || $v['price'] == 0) {
$data[$key]['attachment'] = $this->getAttachPathByAttachId($v['attachment']);
$data[$key]['attach'] = $this->getAttachPathByAttachId($v['attachment']);
}
// 判断自动组卷(1)和手动组卷
if ($v['assembly_type'] == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment