...
|
...
|
@@ -383,14 +383,17 @@ class UserModel |
|
|
$result['walkwayUrl'] = '/product/new';
|
|
|
$result['noRecord'] = true;
|
|
|
} else {
|
|
|
$result['coupons'] = $coupons['data']['info'];
|
|
|
$couponArr = array();
|
|
|
isset($coupons['data']['info']) && $couponArr = $coupons['data']['info'];
|
|
|
|
|
|
foreach ($result['coupons'] as &$val) {
|
|
|
foreach ($couponArr as &$val) {
|
|
|
// 处理已使用的优惠券
|
|
|
if ($status == 1) {
|
|
|
$val['used'] = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
!empty($couponArr) && $result['coupons'] = $couponArr;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|