Browse Source

Merge branch 'gift'

zz 6 years ago
parent
commit
79a9304bb6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Modules/Book/Services/BookGiftsService.php

+ 1 - 1
app/Modules/Book/Services/BookGiftsService.php

@@ -131,7 +131,7 @@ class BookGiftsService
     }
 
     public static function chargeGiveGift($property,$price,$charge_type){
-        if(!$property) return [];
+        if(!$property) $property = 'none';
         $gift_info = [
             1=>['name_desc'=>'黄金玫瑰','cost'=>200,'icon'=>'https://yqcdn.iycdm.com/wap/present/20181016/3.png'],
             2=>['name_desc'=>'文学奖','cost'=>800,'icon'=>'https://yqcdn.iycdm.com/wap/present/20181016/5.png'],