Commit b5cc0bdb by 冷斌

fix bug

parent d094ff78
......@@ -114,6 +114,7 @@ class ExamsPaperModel extends Model
public function isBuy($id, $uid)
{
var_dump($id, $uid);
$order = M('el_exams_paper_order')->where("uid = {$uid} and paper_id = {$id} and pay_status = 3")->getField('id');
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