Procházet zdrojové kódy

【Mod】代码优化

liuxiangxin před 6 měsíci
rodič
revize
30e8265178

+ 1 - 1
app/Http/Controllers/Admin/LotteryOrder.php

@@ -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;
 		}

+ 2 - 0
app/Models/CustomCoupon.php

@@ -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);
 		// 如果有优惠券

+ 1 - 0
resources/views/admin/product/get_sku_html.blade.php

@@ -6,6 +6,7 @@
 					@foreach ($specAttr as $value)
 					<th>{{$value['spec_name']}}</th>
 					@endforeach
+					<th>配图</th>
 					<th>价格</th>
 					<th>库存</th>
 					<th>是否上架</th>