From ddc1e69111a32979b6f91062743f7815a9df44d3 Mon Sep 17 00:00:00 2001 From: lqmac Date: Mon, 13 May 2024 15:11:58 +0800 Subject: [PATCH] 1 --- app/api/controller/Goods.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/api/controller/Goods.php b/app/api/controller/Goods.php index 2a093948..3eef24ba 100644 --- a/app/api/controller/Goods.php +++ b/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;