|
@@ -214,11 +214,6 @@ class Books extends Api
|
|
|
$listss[] = $v;
|
|
|
// unset($lists[$k]);
|
|
|
}
|
|
|
- //免费/付费
|
|
|
- $lists['data'][$k]['is_free'] = 1;
|
|
|
- if($v['price'] <= 0){
|
|
|
- $lists['data'][$k]['is_free'] = 0;
|
|
|
- }
|
|
|
//体验卡
|
|
|
$cer = $Certificate->where('user_id',$uid)
|
|
|
->where('goods_id',$v['id'])
|
|
@@ -230,6 +225,11 @@ class Books extends Api
|
|
|
$list['is_certificate'] = 0;
|
|
|
$list['free_end_time'] = $cer['free_end_time'];
|
|
|
}else{
|
|
|
+ //免费/付费
|
|
|
+ $lists['data'][$k]['is_free'] = 1;
|
|
|
+ if($v['price'] <= 0){
|
|
|
+ $lists['data'][$k]['is_free'] = 0;
|
|
|
+ }
|
|
|
$list['is_certificate'] = 1;
|
|
|
}
|
|
|
}
|