From 862489e7db6b0466455c1699f9dc26f81ef273b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Tue, 8 Aug 2023 18:15:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E7=94=B5=E5=AD=90=E9=9D=A2?= =?UTF-8?q?=E5=8D=95=E8=B4=A6=E5=8F=B7=E6=8E=88=E6=9D=83=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Shop/ShopsController.php | 1 - app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Shop/ShopsController.php b/app/Http/Controllers/Shop/ShopsController.php index 0ffe276..1688b6a 100644 --- a/app/Http/Controllers/Shop/ShopsController.php +++ b/app/Http/Controllers/Shop/ShopsController.php @@ -247,7 +247,6 @@ class ShopsController extends Controller foreach ($subCols['branch_account_cols'] as $accountCols) { foreach ($accountCols['shipp_address_cols'] as $item) { $item['wp_code'] = $subCols['wp_code']; - unset($item['r1_expires_at'], $item['r1_expires_in'], $item['r2_expires_at'], $item['r2_expires_in'], $item['w1_expires_at'], $item['w1_expires_in'], $item['w2_expires_at'], $item['w2_expires_in']); ShopSender::query()->updateOrCreate( ['shop_id' => $shopId, 'shop_ship_id' => $shopShip->id, 'detail' => $item['detail']], $item diff --git a/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php b/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php index a4f079a..9062f5b 100644 --- a/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php +++ b/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php @@ -41,6 +41,7 @@ class KuaiTuanTuan extends BusinessClient $this->shop->update($accessToken); } if ('ship' === $type) { + unset($accessToken['r1_expires_at'], $accessToken['r1_expires_in'], $accessToken['r2_expires_at'], $accessToken['r2_expires_in'], $accessToken['w1_expires_at'], $accessToken['w1_expires_in'], $accessToken['w2_expires_at'], $accessToken['w2_expires_in']); ShopShip::query()->updateOrCreate( ['shop_id' => $this->shop->id], $accessToken