原因说明:练习答题已经提交过的试卷,查看解析时提示“参数错误,请重新答题”
修改文件:application\wap\controller\Topic
修改方法:isUserExaminationRecord()
public function isUserExaminationRecord($e_id)
{
$record = ExaminationRecord::where(['id' => $e_id, 'uid' => $this->uid])->order('id desc')->find();
if ($record) {
return JsonService::successful('ok', $e_id);
} else {
return JsonService::fail('fall');
}
}
修改文件:application\web\controller\Topic
修改方法:isUserExaminationRecord()
public function isUserExaminationRecord($e_id)
{
$record = ExaminationRecord::where(['id' => $e_id, 'uid' => $this->uid])->order('id desc')->find();
if ($record) {
return JsonService::successful('ok', $e_id);
} else {
return JsonService::fail('fall');
}
}