@@ -37,7 +37,7 @@ class LotteryOrder extends Auth{
// 循环处理数据
foreach ($list as $key => $value) {
// 小程序链接
- $value['mp_urllink']= '';//$this->getUrlLink($value['id']);
+ $value['mp_urllink']= $this->getUrlLink($value['id']);
// 重组
$list[$key] = $value;
}
@@ -127,6 +127,8 @@ class CustomCoupon extends Model
*
*/
public function getRebatePrice($customCouponId,$uid,$productPrice){
+ // 如果有优惠券
+ if( !$customCouponId ) return ['is_used'=>0,'product_price'=>$productPrice,'rebate_product'=>[]];
// 查询用户的指定优惠券
$coupon = $this->getCouponById($customCouponId,$uid);
// 如果有优惠券
@@ -6,6 +6,7 @@
@foreach ($specAttr as $value)
<th>{{$value['spec_name']}}</th>
@endforeach
+ <th>配图</th>
<th>价格</th>
<th>库存</th>
<th>是否上架</th>