Commit e5600d4a authored by wangzhengwen's avatar wangzhengwen

证书

parent 4a493263
......@@ -101,6 +101,17 @@ class Cert extends BaseController
where(['cert_id'=>$data['cert_id'],'user_id'=>$userId,'is_del'=>0])
->where('status','<>',2)
->count();
//是否付费证书
if ($detail['price']>0)
{
$detail['price'] = CertOrder::where([
'cert_id' => $data['cert_id'],
'user_id' => $userId,
'is_del' => 0
])->where('status', '>', 0)->exists() ? 0 : $detail['price'];
}
}
......
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