From c19efdfe985a0395f64f2dc7ba2a0e82b7ef2aa5 Mon Sep 17 00:00:00 2001 From: dengke Date: Wed, 15 Jun 2022 09:52:44 +0800 Subject: [PATCH 1/3] commit --- api/GoodsListV2WithOauth.php | 68 ++++++++++++++++++++++++++++++++++++ api/VipGoodsDetail.php | 45 ++++++++++++++++++++++++ api/VipOrderList.php | 55 +++++++++++++++++++++++++++++ api/VipRefundOrderList.php | 54 ++++++++++++++++++++++++++++ api/VipUserRecommend.php | 51 +++++++++++++++++++++++++++ 5 files changed, 273 insertions(+) create mode 100644 api/GoodsListV2WithOauth.php create mode 100644 api/VipGoodsDetail.php create mode 100644 api/VipOrderList.php create mode 100644 api/VipRefundOrderList.php create mode 100644 api/VipUserRecommend.php diff --git a/api/GoodsListV2WithOauth.php b/api/GoodsListV2WithOauth.php new file mode 100644 index 0000000..d5bb9bd --- /dev/null +++ b/api/GoodsListV2WithOauth.php @@ -0,0 +1,68 @@ +sourceType) { + return ['sourceType不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipGoodsDetail.php b/api/VipGoodsDetail.php new file mode 100644 index 0000000..31ccfdb --- /dev/null +++ b/api/VipGoodsDetail.php @@ -0,0 +1,45 @@ +goodsIdList) { + return ['goodsIdList不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipOrderList.php b/api/VipOrderList.php new file mode 100644 index 0000000..a9d4fcf --- /dev/null +++ b/api/VipOrderList.php @@ -0,0 +1,55 @@ +page) { + return ['page不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipRefundOrderList.php b/api/VipRefundOrderList.php new file mode 100644 index 0000000..3a86b71 --- /dev/null +++ b/api/VipRefundOrderList.php @@ -0,0 +1,54 @@ +searchType) { + return ['searchType不能为空!', false]; + } + if (!$this->page) { + return ['page不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipUserRecommend.php b/api/VipUserRecommend.php new file mode 100644 index 0000000..d08c3e8 --- /dev/null +++ b/api/VipUserRecommend.php @@ -0,0 +1,51 @@ +page) { + return ['page不能为空!', false]; + } + return ['', true]; + } +} -- Gitee From 5c31c228eada24681b5c10716fd452f898c7297d Mon Sep 17 00:00:00 2001 From: dengke Date: Wed, 15 Jun 2022 09:54:22 +0800 Subject: [PATCH 2/3] commit --- api/VipGoodsDetail.php | 2 +- api/VipOrderList.php | 2 +- api/VipRefundOrderList.php | 2 +- api/VipUserRecommend.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/VipGoodsDetail.php b/api/VipGoodsDetail.php index 31ccfdb..5793c3d 100644 --- a/api/VipGoodsDetail.php +++ b/api/VipGoodsDetail.php @@ -1,7 +1,7 @@ Date: Wed, 15 Jun 2022 13:42:37 +0800 Subject: [PATCH 3/3] commit --- api/MtDataPromoteAbnormal.php | 53 +++++++++++++++++++++++++++ api/MtDataPromoteOrder.php | 64 ++++++++++++++++++++++++++++++++ api/MtPromotionLink.php | 69 +++++++++++++++++++++++++++++++++++ api/VipGoodsDetail.php | 2 +- api/VipOrderList.php | 2 +- api/VipPromoteLink.php | 47 ++++++++++++++++++++++++ api/VipRefundOrderList.php | 2 +- api/VipSearchByKeywords.php | 69 +++++++++++++++++++++++++++++++++++ api/VipUserRecommend.php | 2 +- 9 files changed, 306 insertions(+), 4 deletions(-) create mode 100644 api/MtDataPromoteAbnormal.php create mode 100644 api/MtDataPromoteOrder.php create mode 100644 api/MtPromotionLink.php create mode 100644 api/VipPromoteLink.php create mode 100644 api/VipSearchByKeywords.php diff --git a/api/MtDataPromoteAbnormal.php b/api/MtDataPromoteAbnormal.php new file mode 100644 index 0000000..c425834 --- /dev/null +++ b/api/MtDataPromoteAbnormal.php @@ -0,0 +1,53 @@ +mtAppKey) { + return ['mtAppKey不能为空!', false]; + } + if (!$this->utmSource) { + return ['utmSource不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/MtDataPromoteOrder.php b/api/MtDataPromoteOrder.php new file mode 100644 index 0000000..98fd132 --- /dev/null +++ b/api/MtDataPromoteOrder.php @@ -0,0 +1,64 @@ +orderType) { + return ['orderType不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/MtPromotionLink.php b/api/MtPromotionLink.php new file mode 100644 index 0000000..fcd8c45 --- /dev/null +++ b/api/MtPromotionLink.php @@ -0,0 +1,69 @@ +mtAppKey) { + return ['mtAppKey不能为空!', false]; + } + if (!$this->utmSource) { + return ['utmSource不能为空!', false]; + } + if (!$this->utmMedium) { + return ['utmMedium不能为空!', false]; + } + if (!$this->activity) { + return ['activity不能为空!', false]; + } + if (!$this->pageLevel) { + return ['pageLevel不能为空!', false]; + } + if (!$this->promotionId) { + return ['promotionId不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipGoodsDetail.php b/api/VipGoodsDetail.php index 5793c3d..729c2aa 100644 --- a/api/VipGoodsDetail.php +++ b/api/VipGoodsDetail.php @@ -10,7 +10,7 @@ class VipGoodsDetail extends DtkClient { protected $goodsIdList; - protected $methodType = 'GET'; + protected $methodType = 'POST'; protected $requestParams = []; const METHOD = "/open-api/vip/goods-detail"; diff --git a/api/VipOrderList.php b/api/VipOrderList.php index e99085b..7c8017d 100644 --- a/api/VipOrderList.php +++ b/api/VipOrderList.php @@ -19,7 +19,7 @@ class VipOrderList extends DtkClient { protected $page; - protected $methodType = 'GET'; + protected $methodType = 'POST'; protected $requestParams = []; const METHOD = "/open-api/vip/order-list"; diff --git a/api/VipPromoteLink.php b/api/VipPromoteLink.php new file mode 100644 index 0000000..6e8f91d --- /dev/null +++ b/api/VipPromoteLink.php @@ -0,0 +1,47 @@ +urlList) { + return ['urlList不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipRefundOrderList.php b/api/VipRefundOrderList.php index a4f5cf7..3140d32 100644 --- a/api/VipRefundOrderList.php +++ b/api/VipRefundOrderList.php @@ -16,7 +16,7 @@ class VipRefundOrderList extends DtkClient protected $page; protected $pageSize; - protected $methodType = 'GET'; + protected $methodType = 'POST'; protected $requestParams = []; const METHOD = "/open-api/vip/refund-order-list"; diff --git a/api/VipSearchByKeywords.php b/api/VipSearchByKeywords.php new file mode 100644 index 0000000..42dca15 --- /dev/null +++ b/api/VipSearchByKeywords.php @@ -0,0 +1,69 @@ +keyword) { + return ['keyword不能为空!', false]; + } + if (!$this->page) { + return ['page不能为空!', false]; + } + return ['', true]; + } +} diff --git a/api/VipUserRecommend.php b/api/VipUserRecommend.php index bfbdb40..527087e 100644 --- a/api/VipUserRecommend.php +++ b/api/VipUserRecommend.php @@ -16,7 +16,7 @@ class VipUserRecommend extends DtkClient { protected $page; - protected $methodType = 'GET'; + protected $methodType = 'POST'; protected $requestParams = []; const METHOD = "/open-api/vip/user-recommend"; -- Gitee