zhangguidong 2 years ago
parent
commit
dc895bb20e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/model/Goods.php

+ 1 - 1
application/api/model/Goods.php

@@ -289,7 +289,7 @@ class Goods extends Model
     {
     {
         $user = User::info();
         $user = User::info();
         // 抵扣比例
         // 抵扣比例
-        $score_cash_offset = config('site.score_cash_offset') ?: 100;
+        $score_cash_offset = !empty(config('site.score_cash_offset')) ?config('site.score_cash_offset'): 100;
         $score_list['score_cash_offset'] = $score_cash_offset;
         $score_list['score_cash_offset'] = $score_cash_offset;
         $score_list['score'] = $user->score;
         $score_list['score'] = $user->score;
         $score_list['goods_score_limit'] = 0;
         $score_list['goods_score_limit'] = 0;