|
@@ -78,6 +78,7 @@ class Product extends Base
|
|
|
}
|
|
|
}
|
|
|
$data->server = count($serverValue) ? implode(' · ', $serverValue) : '';*/
|
|
|
+ $data->server = '';
|
|
|
|
|
|
// 默认没有收藏
|
|
|
$data->favorite = false;
|
|
@@ -90,6 +91,7 @@ class Product extends Base
|
|
|
//优惠券
|
|
|
/*$data->coupon = (new Coupon)->where('endtime', '>', time())
|
|
|
->where(['switch' => Coupon::SWITCH_ON])->cache(10)->order('weigh DESC')->select();*/
|
|
|
+ $data->coupon = [];
|
|
|
|
|
|
// 是否已收藏
|
|
|
if ($this->auth->id) {
|