lqmac 8 months ago
parent 22a0f5ebcd
commit ddc1e69111
  1. 4
      app/api/controller/Goods.php

@ -99,6 +99,7 @@ class Goods extends Controller
'state' => "无货",
'goods_name' => $goods['goods_name'],
'goods_id' => $goods['goods_id'],
'promise_info' => "预计".(GoodsDeliveryTime::data()[$goods['delivery_time']] ?? "72小时")."内发货",
];
$return[] = $data;
continue;
@ -112,6 +113,7 @@ class Goods extends Controller
$data = $suning->shoppingCartPrice([$goods->toArray()], $city->sn_code, $district->sn_code);
$data['goods_name'] = $goods['goods_name'];
$data['goods_id'] = $goods['goods_id'];
$data['promise_info'] = "预计".(GoodsDeliveryTime::data()[$goods['delivery_time']] ?? "72小时")."内发货";
break;
case 'jd':
case 'jd1':
@ -134,6 +136,7 @@ class Goods extends Controller
'state' => $res,
'goods_name' => $goods['goods_name'],
'goods_id' => $goods['goods_id'],
'promise_info' => $ret['promiseInfo'] ?? "预计72小时内发货",
];
break;
default:
@ -144,6 +147,7 @@ class Goods extends Controller
'state' => $res,
'goods_name' => $goods['goods_name'],
'goods_id' => $goods['goods_id'],
'promise_info' => "预计".(GoodsDeliveryTime::data()[$goods['delivery_time']] ?? "72小时")."内发货",
];
break;

Loading…
Cancel
Save