From 4ab41a2a4eebee2ba786b0bd4d7765cc3d4b7a82 Mon Sep 17 00:00:00 2001 From: mzeros Date: Sun, 22 Dec 2024 22:29:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(product):=20=E6=9B=B4=E6=96=B0=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E7=B1=BB=E5=9E=8B=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=97=A7?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ProductBaseService 中添加新的产品类型:卡密类和 API 业务类- 在 Core 控制器中添加 old_product 字段,用于记录原始产品类型 --- app/channel/service/ProductBaseService.php | 2 ++ app/gateway/controller/v4/Core.php | 1 + 2 files changed, 3 insertions(+) diff --git a/app/channel/service/ProductBaseService.php b/app/channel/service/ProductBaseService.php index d3cae29..01d89ff 100644 --- a/app/channel/service/ProductBaseService.php +++ b/app/channel/service/ProductBaseService.php @@ -23,6 +23,8 @@ class ProductBaseService extends Service 1 => '加油卡', 2 => '话费', 3 => '权益卡', + 4 => '卡密类', + 5 => 'API业务类' ); public function getType() diff --git a/app/gateway/controller/v4/Core.php b/app/gateway/controller/v4/Core.php index e269e54..b688698 100644 --- a/app/gateway/controller/v4/Core.php +++ b/app/gateway/controller/v4/Core.php @@ -270,6 +270,7 @@ class Core extends Controller $isp = Service::instance()->isp($this->input['mobile']); + $this->input['old_product'] = $this->product; if ($isp == 1) { $this->product = 'ydcz'; } elseif ($isp == 2) {