浏览代码

Merge branch 'gift'

zz 6 年之前
父节点
当前提交
79a9304bb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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'],