Commit 0fd3f45a by 冷斌

fix bug

parent b5cc0bdb
......@@ -114,8 +114,8 @@ 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');
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