|
|
@ -159,8 +159,8 @@ class CouponController extends AdminController |
|
|
}); |
|
|
}); |
|
|
$show->activity_available->as(function($activityAvailable){ |
|
|
$show->activity_available->as(function($activityAvailable){ |
|
|
$text = ''; |
|
|
$text = ''; |
|
|
$activityAvailable = json_decode($activityAvailable); |
|
|
|
|
|
if(!empty($activityAvailable)){ |
|
|
if(!empty($activityAvailable)){ |
|
|
|
|
|
$activityAvailable = is_array($activityAvailable) ? $activityAvailable : json_decode($activityAvailable); |
|
|
foreach($activityAvailable as $value){ |
|
|
foreach($activityAvailable as $value){ |
|
|
$value = CouponModel::$activityAvailable[$value] ?? ''; |
|
|
$value = CouponModel::$activityAvailable[$value] ?? ''; |
|
|
$text .= '['.$value.'] '; |
|
|
$text .= '['.$value.'] '; |
|
|
@ -170,8 +170,8 @@ class CouponController extends AdminController |
|
|
}); |
|
|
}); |
|
|
$show->tags->as(function($tags){ |
|
|
$show->tags->as(function($tags){ |
|
|
$text = ''; |
|
|
$text = ''; |
|
|
$tags = json_decode($tags); |
|
|
|
|
|
if(!empty($tags)){ |
|
|
if(!empty($tags)){ |
|
|
|
|
|
$tags = is_array($tags) ? $tags : json_decode($tags); |
|
|
foreach($tags as $value){ |
|
|
foreach($tags as $value){ |
|
|
$value = $value ?? ''; |
|
|
$value = $value ?? ''; |
|
|
$text .= '['.$value.'] '; |
|
|
$text .= '['.$value.'] '; |
|
|
|