|
@@ -289,7 +289,7 @@ class Goods extends Model
|
|
|
{
|
|
|
$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'] = $user->score;
|
|
|
$score_list['goods_score_limit'] = 0;
|