|
@@ -144,6 +144,9 @@ class BookGiftsService
|
|
];
|
|
];
|
|
if($property == 'none' || $property == 'low'){
|
|
if($property == 'none' || $property == 'low'){
|
|
$gift = [];
|
|
$gift = [];
|
|
|
|
+ if($price <2){
|
|
|
|
+ return [];
|
|
|
|
+ }
|
|
if($price <18 && $price >=2){
|
|
if($price <18 && $price >=2){
|
|
$gift = [['gift_id'=>6,'num'=>1,'name_desc'=>'','cost'=>'','icon'=>'']];
|
|
$gift = [['gift_id'=>6,'num'=>1,'name_desc'=>'','cost'=>'','icon'=>'']];
|
|
}elseif ($price <30){
|
|
}elseif ($price <30){
|
|
@@ -200,6 +203,9 @@ class BookGiftsService
|
|
|
|
|
|
if($property == 'high' || $property == 'medium'){
|
|
if($property == 'high' || $property == 'medium'){
|
|
$gift = [];
|
|
$gift = [];
|
|
|
|
+ if($price < 18){
|
|
|
|
+ return [];
|
|
|
|
+ }
|
|
if($price <30 && $price >=18){
|
|
if($price <30 && $price >=18){
|
|
$gift = [
|
|
$gift = [
|
|
['gift_id'=>6,'num'=>1,'name_desc'=>'','cost'=>'','icon'=>''],
|
|
['gift_id'=>6,'num'=>1,'name_desc'=>'','cost'=>'','icon'=>''],
|