Browse Source

失效原因

master
Lemon 5 years ago
parent
commit
854e3d8a6b
  1. 15
      app/Service/v3/Implementations/ShopCartService.php

15
app/Service/v3/Implementations/ShopCartService.php

@ -36,6 +36,21 @@ class ShopCartService implements ShopCartServiceInterface
->get();
foreach ($res as &$k){
$k->subtotal = '99.90';
foreach ($k->ShoppingCart as &$v){
switch (mt_rand(1,3)) {
case 1:
$str = '已下架';
break;
case 2:
$str = '已抢光';
break;
case 3:
$str = '已打烊';
break;
}
$v['goods']['invalid_cause'] = $str;
}
}
return $res;
}

Loading…
Cancel
Save