Commit 55f1227f by 冷斌

fix bug

parent 0fd3f45a
......@@ -114,7 +114,7 @@ class ExamsPaperModel extends Model
public function isBuy($id, $uid)
{
$order = M('el_exams_paper_order')->where("uid = {$uid} and paper_id = {$id} and pay_status = 3")->getField('id');
$order = M('exams_paper_order')->where("uid = {$uid} and paper_id = {$id} and pay_status = 3")->getField('id');
var_dump($order);
return !empty($order) ? 1 : 0;
}
......
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