@@ -7,139 +7,139 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class TbkScPublisherInfoSaveRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 类型,必选 默认为1: |
|
| 12 | - **/ |
|
| 13 | - private $infoType; |
|
| 10 | + /** |
|
| 11 | + * 类型,必选 默认为1: |
|
| 12 | + **/ |
|
| 13 | + private $infoType; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * 淘宝客邀请渠道或会员的邀请码 |
|
| 17 | - **/ |
|
| 18 | - private $inviterCode; |
|
| 15 | + /** |
|
| 16 | + * 淘宝客邀请渠道或会员的邀请码 |
|
| 17 | + **/ |
|
| 18 | + private $inviterCode; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * 媒体侧渠道备注 |
|
| 22 | - **/ |
|
| 23 | - private $note; |
|
| 20 | + /** |
|
| 21 | + * 媒体侧渠道备注 |
|
| 22 | + **/ |
|
| 23 | + private $note; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 |
|
| 27 | - **/ |
|
| 28 | - private $offlineScene; |
|
| 25 | + /** |
|
| 26 | + * 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 |
|
| 27 | + **/ |
|
| 28 | + private $offlineScene; |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 |
|
| 32 | - **/ |
|
| 33 | - private $onlineScene; |
|
| 30 | + /** |
|
| 31 | + * 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 |
|
| 32 | + **/ |
|
| 33 | + private $onlineScene; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填) |
|
| 37 | - **/ |
|
| 38 | - private $registerInfo; |
|
| 35 | + /** |
|
| 36 | + * 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填) |
|
| 37 | + **/ |
|
| 38 | + private $registerInfo; |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * 渠道备案 - 来源,取链接的来源 |
|
| 42 | - **/ |
|
| 43 | - private $relationFrom; |
|
| 40 | + /** |
|
| 41 | + * 渠道备案 - 来源,取链接的来源 |
|
| 42 | + **/ |
|
| 43 | + private $relationFrom; |
|
| 44 | 44 | |
| 45 | - private $apiParas = array(); |
|
| 45 | + private $apiParas = array(); |
|
| 46 | 46 | |
| 47 | - public function setInfoType($infoType) |
|
| 48 | - { |
|
| 49 | - $this->infoType = $infoType; |
|
| 50 | - $this->apiParas["info_type"] = $infoType; |
|
| 51 | - } |
|
| 47 | + public function setInfoType($infoType) |
|
| 48 | + { |
|
| 49 | + $this->infoType = $infoType; |
|
| 50 | + $this->apiParas["info_type"] = $infoType; |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | - public function getInfoType() |
|
| 54 | - { |
|
| 55 | - return $this->infoType; |
|
| 56 | - } |
|
| 53 | + public function getInfoType() |
|
| 54 | + { |
|
| 55 | + return $this->infoType; |
|
| 56 | + } |
|
| 57 | 57 | |
| 58 | - public function setInviterCode($inviterCode) |
|
| 59 | - { |
|
| 60 | - $this->inviterCode = $inviterCode; |
|
| 61 | - $this->apiParas["inviter_code"] = $inviterCode; |
|
| 62 | - } |
|
| 58 | + public function setInviterCode($inviterCode) |
|
| 59 | + { |
|
| 60 | + $this->inviterCode = $inviterCode; |
|
| 61 | + $this->apiParas["inviter_code"] = $inviterCode; |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - public function getInviterCode() |
|
| 65 | - { |
|
| 66 | - return $this->inviterCode; |
|
| 67 | - } |
|
| 64 | + public function getInviterCode() |
|
| 65 | + { |
|
| 66 | + return $this->inviterCode; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - public function setNote($note) |
|
| 70 | - { |
|
| 71 | - $this->note = $note; |
|
| 72 | - $this->apiParas["note"] = $note; |
|
| 73 | - } |
|
| 69 | + public function setNote($note) |
|
| 70 | + { |
|
| 71 | + $this->note = $note; |
|
| 72 | + $this->apiParas["note"] = $note; |
|
| 73 | + } |
|
| 74 | 74 | |
| 75 | - public function getNote() |
|
| 76 | - { |
|
| 77 | - return $this->note; |
|
| 78 | - } |
|
| 75 | + public function getNote() |
|
| 76 | + { |
|
| 77 | + return $this->note; |
|
| 78 | + } |
|
| 79 | 79 | |
| 80 | - public function setOfflineScene($offlineScene) |
|
| 81 | - { |
|
| 82 | - $this->offlineScene = $offlineScene; |
|
| 83 | - $this->apiParas["offline_scene"] = $offlineScene; |
|
| 84 | - } |
|
| 80 | + public function setOfflineScene($offlineScene) |
|
| 81 | + { |
|
| 82 | + $this->offlineScene = $offlineScene; |
|
| 83 | + $this->apiParas["offline_scene"] = $offlineScene; |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - public function getOfflineScene() |
|
| 87 | - { |
|
| 88 | - return $this->offlineScene; |
|
| 89 | - } |
|
| 86 | + public function getOfflineScene() |
|
| 87 | + { |
|
| 88 | + return $this->offlineScene; |
|
| 89 | + } |
|
| 90 | 90 | |
| 91 | - public function setOnlineScene($onlineScene) |
|
| 92 | - { |
|
| 93 | - $this->onlineScene = $onlineScene; |
|
| 94 | - $this->apiParas["online_scene"] = $onlineScene; |
|
| 95 | - } |
|
| 91 | + public function setOnlineScene($onlineScene) |
|
| 92 | + { |
|
| 93 | + $this->onlineScene = $onlineScene; |
|
| 94 | + $this->apiParas["online_scene"] = $onlineScene; |
|
| 95 | + } |
|
| 96 | 96 | |
| 97 | - public function getOnlineScene() |
|
| 98 | - { |
|
| 99 | - return $this->onlineScene; |
|
| 100 | - } |
|
| 97 | + public function getOnlineScene() |
|
| 98 | + { |
|
| 99 | + return $this->onlineScene; |
|
| 100 | + } |
|
| 101 | 101 | |
| 102 | - public function setRegisterInfo($registerInfo) |
|
| 103 | - { |
|
| 104 | - $this->registerInfo = $registerInfo; |
|
| 105 | - $this->apiParas["register_info"] = $registerInfo; |
|
| 106 | - } |
|
| 102 | + public function setRegisterInfo($registerInfo) |
|
| 103 | + { |
|
| 104 | + $this->registerInfo = $registerInfo; |
|
| 105 | + $this->apiParas["register_info"] = $registerInfo; |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | - public function getRegisterInfo() |
|
| 109 | - { |
|
| 110 | - return $this->registerInfo; |
|
| 111 | - } |
|
| 108 | + public function getRegisterInfo() |
|
| 109 | + { |
|
| 110 | + return $this->registerInfo; |
|
| 111 | + } |
|
| 112 | 112 | |
| 113 | - public function setRelationFrom($relationFrom) |
|
| 114 | - { |
|
| 115 | - $this->relationFrom = $relationFrom; |
|
| 116 | - $this->apiParas["relation_from"] = $relationFrom; |
|
| 117 | - } |
|
| 113 | + public function setRelationFrom($relationFrom) |
|
| 114 | + { |
|
| 115 | + $this->relationFrom = $relationFrom; |
|
| 116 | + $this->apiParas["relation_from"] = $relationFrom; |
|
| 117 | + } |
|
| 118 | 118 | |
| 119 | - public function getRelationFrom() |
|
| 120 | - { |
|
| 121 | - return $this->relationFrom; |
|
| 122 | - } |
|
| 119 | + public function getRelationFrom() |
|
| 120 | + { |
|
| 121 | + return $this->relationFrom; |
|
| 122 | + } |
|
| 123 | 123 | |
| 124 | - public function getApiMethodName() |
|
| 125 | - { |
|
| 126 | - return "taobao.tbk.sc.publisher.info.save"; |
|
| 127 | - } |
|
| 124 | + public function getApiMethodName() |
|
| 125 | + { |
|
| 126 | + return "taobao.tbk.sc.publisher.info.save"; |
|
| 127 | + } |
|
| 128 | 128 | |
| 129 | - public function getApiParas() |
|
| 130 | - { |
|
| 131 | - return $this->apiParas; |
|
| 132 | - } |
|
| 129 | + public function getApiParas() |
|
| 130 | + { |
|
| 131 | + return $this->apiParas; |
|
| 132 | + } |
|
| 133 | 133 | |
| 134 | - public function check() |
|
| 135 | - { |
|
| 134 | + public function check() |
|
| 135 | + { |
|
| 136 | 136 | |
| 137 | - RequestCheckUtil::checkNotNull($this->infoType,"infoType"); |
|
| 138 | - RequestCheckUtil::checkNotNull($this->inviterCode,"inviterCode"); |
|
| 139 | - } |
|
| 137 | + RequestCheckUtil::checkNotNull($this->infoType,"infoType"); |
|
| 138 | + RequestCheckUtil::checkNotNull($this->inviterCode,"inviterCode"); |
|
| 139 | + } |
|
| 140 | 140 | |
| 141 | - public function putOtherTextParam($key, $value) { |
|
| 142 | - $this->apiParas[$key] = $value; |
|
| 143 | - $this->$key = $value; |
|
| 144 | - } |
|
| 141 | + public function putOtherTextParam($key, $value) { |
|
| 142 | + $this->apiParas[$key] = $value; |
|
| 143 | + $this->$key = $value; |
|
| 144 | + } |
|
| 145 | 145 | } |
@@ -7,42 +7,42 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class OpenuidGetBytradeRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 订单ID |
|
| 12 | - **/ |
|
| 13 | - private $tid; |
|
| 10 | + /** |
|
| 11 | + * 订单ID |
|
| 12 | + **/ |
|
| 13 | + private $tid; |
|
| 14 | 14 | |
| 15 | - private $apiParas = array(); |
|
| 15 | + private $apiParas = array(); |
|
| 16 | 16 | |
| 17 | - public function setTid($tid) |
|
| 18 | - { |
|
| 19 | - $this->tid = $tid; |
|
| 20 | - $this->apiParas["tid"] = $tid; |
|
| 21 | - } |
|
| 17 | + public function setTid($tid) |
|
| 18 | + { |
|
| 19 | + $this->tid = $tid; |
|
| 20 | + $this->apiParas["tid"] = $tid; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function getTid() |
|
| 24 | - { |
|
| 25 | - return $this->tid; |
|
| 26 | - } |
|
| 23 | + public function getTid() |
|
| 24 | + { |
|
| 25 | + return $this->tid; |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - public function getApiMethodName() |
|
| 29 | - { |
|
| 30 | - return "taobao.openuid.get.bytrade"; |
|
| 31 | - } |
|
| 28 | + public function getApiMethodName() |
|
| 29 | + { |
|
| 30 | + return "taobao.openuid.get.bytrade"; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - public function getApiParas() |
|
| 34 | - { |
|
| 35 | - return $this->apiParas; |
|
| 36 | - } |
|
| 33 | + public function getApiParas() |
|
| 34 | + { |
|
| 35 | + return $this->apiParas; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function check() |
|
| 39 | - { |
|
| 38 | + public function check() |
|
| 39 | + { |
|
| 40 | 40 | |
| 41 | - RequestCheckUtil::checkNotNull($this->tid,"tid"); |
|
| 42 | - } |
|
| 41 | + RequestCheckUtil::checkNotNull($this->tid,"tid"); |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function putOtherTextParam($key, $value) { |
|
| 45 | - $this->apiParas[$key] = $value; |
|
| 46 | - $this->$key = $value; |
|
| 47 | - } |
|
| 44 | + public function putOtherTextParam($key, $value) { |
|
| 45 | + $this->apiParas[$key] = $value; |
|
| 46 | + $this->$key = $value; |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -8,25 +8,25 @@ |
||
| 8 | 8 | class TimeGetRequest |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | - private $apiParas = array(); |
|
| 11 | + private $apiParas = array(); |
|
| 12 | 12 | |
| 13 | - public function getApiMethodName() |
|
| 14 | - { |
|
| 15 | - return "taobao.time.get"; |
|
| 16 | - } |
|
| 13 | + public function getApiMethodName() |
|
| 14 | + { |
|
| 15 | + return "taobao.time.get"; |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | - public function getApiParas() |
|
| 19 | - { |
|
| 20 | - return $this->apiParas; |
|
| 21 | - } |
|
| 18 | + public function getApiParas() |
|
| 19 | + { |
|
| 20 | + return $this->apiParas; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function check() |
|
| 24 | - { |
|
| 23 | + public function check() |
|
| 24 | + { |
|
| 25 | 25 | |
| 26 | - } |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - public function putOtherTextParam($key, $value) { |
|
| 29 | - $this->apiParas[$key] = $value; |
|
| 30 | - $this->$key = $value; |
|
| 31 | - } |
|
| 28 | + public function putOtherTextParam($key, $value) { |
|
| 29 | + $this->apiParas[$key] = $value; |
|
| 30 | + $this->$key = $value; |
|
| 31 | + } |
|
| 32 | 32 | } |
@@ -7,107 +7,107 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class TbkDgVegasSendReportRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 2020双11大促活动id:1306 |
|
| 12 | - **/ |
|
| 13 | - private $activityId; |
|
| 10 | + /** |
|
| 11 | + * 2020双11大促活动id:1306 |
|
| 12 | + **/ |
|
| 13 | + private $activityId; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * 统计日期 |
|
| 17 | - **/ |
|
| 18 | - private $bizDate; |
|
| 15 | + /** |
|
| 16 | + * 统计日期 |
|
| 17 | + **/ |
|
| 18 | + private $bizDate; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * 页码 |
|
| 22 | - **/ |
|
| 23 | - private $pageNo; |
|
| 20 | + /** |
|
| 21 | + * 页码 |
|
| 22 | + **/ |
|
| 23 | + private $pageNo; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * 每页大小 |
|
| 27 | - **/ |
|
| 28 | - private $pageSize; |
|
| 25 | + /** |
|
| 26 | + * 每页大小 |
|
| 27 | + **/ |
|
| 28 | + private $pageSize; |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * 渠道关系id |
|
| 32 | - **/ |
|
| 33 | - private $relationId; |
|
| 30 | + /** |
|
| 31 | + * 渠道关系id |
|
| 32 | + **/ |
|
| 33 | + private $relationId; |
|
| 34 | 34 | |
| 35 | - private $apiParas = array(); |
|
| 35 | + private $apiParas = array(); |
|
| 36 | 36 | |
| 37 | - public function setActivityId($activityId) |
|
| 38 | - { |
|
| 39 | - $this->activityId = $activityId; |
|
| 40 | - $this->apiParas["activity_id"] = $activityId; |
|
| 41 | - } |
|
| 37 | + public function setActivityId($activityId) |
|
| 38 | + { |
|
| 39 | + $this->activityId = $activityId; |
|
| 40 | + $this->apiParas["activity_id"] = $activityId; |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - public function getActivityId() |
|
| 44 | - { |
|
| 45 | - return $this->activityId; |
|
| 46 | - } |
|
| 43 | + public function getActivityId() |
|
| 44 | + { |
|
| 45 | + return $this->activityId; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - public function setBizDate($bizDate) |
|
| 49 | - { |
|
| 50 | - $this->bizDate = $bizDate; |
|
| 51 | - $this->apiParas["biz_date"] = $bizDate; |
|
| 52 | - } |
|
| 48 | + public function setBizDate($bizDate) |
|
| 49 | + { |
|
| 50 | + $this->bizDate = $bizDate; |
|
| 51 | + $this->apiParas["biz_date"] = $bizDate; |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - public function getBizDate() |
|
| 55 | - { |
|
| 56 | - return $this->bizDate; |
|
| 57 | - } |
|
| 54 | + public function getBizDate() |
|
| 55 | + { |
|
| 56 | + return $this->bizDate; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - public function setPageNo($pageNo) |
|
| 60 | - { |
|
| 61 | - $this->pageNo = $pageNo; |
|
| 62 | - $this->apiParas["page_no"] = $pageNo; |
|
| 63 | - } |
|
| 59 | + public function setPageNo($pageNo) |
|
| 60 | + { |
|
| 61 | + $this->pageNo = $pageNo; |
|
| 62 | + $this->apiParas["page_no"] = $pageNo; |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - public function getPageNo() |
|
| 66 | - { |
|
| 67 | - return $this->pageNo; |
|
| 68 | - } |
|
| 65 | + public function getPageNo() |
|
| 66 | + { |
|
| 67 | + return $this->pageNo; |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | - public function setPageSize($pageSize) |
|
| 71 | - { |
|
| 72 | - $this->pageSize = $pageSize; |
|
| 73 | - $this->apiParas["page_size"] = $pageSize; |
|
| 74 | - } |
|
| 70 | + public function setPageSize($pageSize) |
|
| 71 | + { |
|
| 72 | + $this->pageSize = $pageSize; |
|
| 73 | + $this->apiParas["page_size"] = $pageSize; |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - public function getPageSize() |
|
| 77 | - { |
|
| 78 | - return $this->pageSize; |
|
| 79 | - } |
|
| 76 | + public function getPageSize() |
|
| 77 | + { |
|
| 78 | + return $this->pageSize; |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - public function setRelationId($relationId) |
|
| 82 | - { |
|
| 83 | - $this->relationId = $relationId; |
|
| 84 | - $this->apiParas["relation_id"] = $relationId; |
|
| 85 | - } |
|
| 81 | + public function setRelationId($relationId) |
|
| 82 | + { |
|
| 83 | + $this->relationId = $relationId; |
|
| 84 | + $this->apiParas["relation_id"] = $relationId; |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | - public function getRelationId() |
|
| 88 | - { |
|
| 89 | - return $this->relationId; |
|
| 90 | - } |
|
| 87 | + public function getRelationId() |
|
| 88 | + { |
|
| 89 | + return $this->relationId; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | - public function getApiMethodName() |
|
| 93 | - { |
|
| 94 | - return "taobao.tbk.dg.vegas.send.report"; |
|
| 95 | - } |
|
| 92 | + public function getApiMethodName() |
|
| 93 | + { |
|
| 94 | + return "taobao.tbk.dg.vegas.send.report"; |
|
| 95 | + } |
|
| 96 | 96 | |
| 97 | - public function getApiParas() |
|
| 98 | - { |
|
| 99 | - return $this->apiParas; |
|
| 100 | - } |
|
| 97 | + public function getApiParas() |
|
| 98 | + { |
|
| 99 | + return $this->apiParas; |
|
| 100 | + } |
|
| 101 | 101 | |
| 102 | - public function check() |
|
| 103 | - { |
|
| 102 | + public function check() |
|
| 103 | + { |
|
| 104 | 104 | |
| 105 | - RequestCheckUtil::checkNotNull($this->activityId,"activityId"); |
|
| 106 | - RequestCheckUtil::checkNotNull($this->bizDate,"bizDate"); |
|
| 107 | - } |
|
| 105 | + RequestCheckUtil::checkNotNull($this->activityId,"activityId"); |
|
| 106 | + RequestCheckUtil::checkNotNull($this->bizDate,"bizDate"); |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - public function putOtherTextParam($key, $value) { |
|
| 110 | - $this->apiParas[$key] = $value; |
|
| 111 | - $this->$key = $value; |
|
| 112 | - } |
|
| 109 | + public function putOtherTextParam($key, $value) { |
|
| 110 | + $this->apiParas[$key] = $value; |
|
| 111 | + $this->$key = $value; |
|
| 112 | + } |
|
| 113 | 113 | } |
@@ -7,74 +7,74 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class TopSecretGetRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 自定义用户id |
|
| 12 | - **/ |
|
| 13 | - private $customerUserId; |
|
| 10 | + /** |
|
| 11 | + * 自定义用户id |
|
| 12 | + **/ |
|
| 13 | + private $customerUserId; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * 伪随机数 |
|
| 17 | - **/ |
|
| 18 | - private $randomNum; |
|
| 15 | + /** |
|
| 16 | + * 伪随机数 |
|
| 17 | + **/ |
|
| 18 | + private $randomNum; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * 秘钥版本号 |
|
| 22 | - **/ |
|
| 23 | - private $secretVersion; |
|
| 20 | + /** |
|
| 21 | + * 秘钥版本号 |
|
| 22 | + **/ |
|
| 23 | + private $secretVersion; |
|
| 24 | 24 | |
| 25 | - private $apiParas = array(); |
|
| 25 | + private $apiParas = array(); |
|
| 26 | 26 | |
| 27 | - public function setCustomerUserId($customerUserId) |
|
| 28 | - { |
|
| 29 | - $this->customerUserId = $customerUserId; |
|
| 30 | - $this->apiParas["customer_user_id"] = $customerUserId; |
|
| 31 | - } |
|
| 27 | + public function setCustomerUserId($customerUserId) |
|
| 28 | + { |
|
| 29 | + $this->customerUserId = $customerUserId; |
|
| 30 | + $this->apiParas["customer_user_id"] = $customerUserId; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - public function getCustomerUserId() |
|
| 34 | - { |
|
| 35 | - return $this->customerUserId; |
|
| 36 | - } |
|
| 33 | + public function getCustomerUserId() |
|
| 34 | + { |
|
| 35 | + return $this->customerUserId; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function setRandomNum($randomNum) |
|
| 39 | - { |
|
| 40 | - $this->randomNum = $randomNum; |
|
| 41 | - $this->apiParas["random_num"] = $randomNum; |
|
| 42 | - } |
|
| 38 | + public function setRandomNum($randomNum) |
|
| 39 | + { |
|
| 40 | + $this->randomNum = $randomNum; |
|
| 41 | + $this->apiParas["random_num"] = $randomNum; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function getRandomNum() |
|
| 45 | - { |
|
| 46 | - return $this->randomNum; |
|
| 47 | - } |
|
| 44 | + public function getRandomNum() |
|
| 45 | + { |
|
| 46 | + return $this->randomNum; |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - public function setSecretVersion($secretVersion) |
|
| 50 | - { |
|
| 51 | - $this->secretVersion = $secretVersion; |
|
| 52 | - $this->apiParas["secret_version"] = $secretVersion; |
|
| 53 | - } |
|
| 49 | + public function setSecretVersion($secretVersion) |
|
| 50 | + { |
|
| 51 | + $this->secretVersion = $secretVersion; |
|
| 52 | + $this->apiParas["secret_version"] = $secretVersion; |
|
| 53 | + } |
|
| 54 | 54 | |
| 55 | - public function getSecretVersion() |
|
| 56 | - { |
|
| 57 | - return $this->secretVersion; |
|
| 58 | - } |
|
| 55 | + public function getSecretVersion() |
|
| 56 | + { |
|
| 57 | + return $this->secretVersion; |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - public function getApiMethodName() |
|
| 61 | - { |
|
| 62 | - return "taobao.top.secret.get"; |
|
| 63 | - } |
|
| 60 | + public function getApiMethodName() |
|
| 61 | + { |
|
| 62 | + return "taobao.top.secret.get"; |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - public function getApiParas() |
|
| 66 | - { |
|
| 67 | - return $this->apiParas; |
|
| 68 | - } |
|
| 65 | + public function getApiParas() |
|
| 66 | + { |
|
| 67 | + return $this->apiParas; |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | - public function check() |
|
| 71 | - { |
|
| 70 | + public function check() |
|
| 71 | + { |
|
| 72 | 72 | |
| 73 | - RequestCheckUtil::checkNotNull($this->randomNum,"randomNum"); |
|
| 74 | - } |
|
| 73 | + RequestCheckUtil::checkNotNull($this->randomNum,"randomNum"); |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - public function putOtherTextParam($key, $value) { |
|
| 77 | - $this->apiParas[$key] = $value; |
|
| 78 | - $this->$key = $value; |
|
| 79 | - } |
|
| 76 | + public function putOtherTextParam($key, $value) { |
|
| 77 | + $this->apiParas[$key] = $value; |
|
| 78 | + $this->$key = $value; |
|
| 79 | + } |
|
| 80 | 80 | } |
@@ -7,107 +7,107 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class TbkTpwdCreateRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * [已废弃]扩展字段JSON格式 |
|
| 12 | - **/ |
|
| 13 | - private $ext; |
|
| 10 | + /** |
|
| 11 | + * [已废弃]扩展字段JSON格式 |
|
| 12 | + **/ |
|
| 13 | + private $ext; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * 口令弹框logoURL |
|
| 17 | - **/ |
|
| 18 | - private $logo; |
|
| 15 | + /** |
|
| 16 | + * 口令弹框logoURL |
|
| 17 | + **/ |
|
| 18 | + private $logo; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * 口令弹框内容 |
|
| 22 | - **/ |
|
| 23 | - private $text; |
|
| 20 | + /** |
|
| 21 | + * 口令弹框内容 |
|
| 22 | + **/ |
|
| 23 | + private $text; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * 口令跳转目标页 |
|
| 27 | - **/ |
|
| 28 | - private $url; |
|
| 25 | + /** |
|
| 26 | + * 口令跳转目标页 |
|
| 27 | + **/ |
|
| 28 | + private $url; |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * 生成口令的淘宝用户ID |
|
| 32 | - **/ |
|
| 33 | - private $userId; |
|
| 30 | + /** |
|
| 31 | + * 生成口令的淘宝用户ID |
|
| 32 | + **/ |
|
| 33 | + private $userId; |
|
| 34 | 34 | |
| 35 | - private $apiParas = array(); |
|
| 35 | + private $apiParas = array(); |
|
| 36 | 36 | |
| 37 | - public function setExt($ext) |
|
| 38 | - { |
|
| 39 | - $this->ext = $ext; |
|
| 40 | - $this->apiParas["ext"] = $ext; |
|
| 41 | - } |
|
| 37 | + public function setExt($ext) |
|
| 38 | + { |
|
| 39 | + $this->ext = $ext; |
|
| 40 | + $this->apiParas["ext"] = $ext; |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - public function getExt() |
|
| 44 | - { |
|
| 45 | - return $this->ext; |
|
| 46 | - } |
|
| 43 | + public function getExt() |
|
| 44 | + { |
|
| 45 | + return $this->ext; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - public function setLogo($logo) |
|
| 49 | - { |
|
| 50 | - $this->logo = $logo; |
|
| 51 | - $this->apiParas["logo"] = $logo; |
|
| 52 | - } |
|
| 48 | + public function setLogo($logo) |
|
| 49 | + { |
|
| 50 | + $this->logo = $logo; |
|
| 51 | + $this->apiParas["logo"] = $logo; |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - public function getLogo() |
|
| 55 | - { |
|
| 56 | - return $this->logo; |
|
| 57 | - } |
|
| 54 | + public function getLogo() |
|
| 55 | + { |
|
| 56 | + return $this->logo; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - public function setText($text) |
|
| 60 | - { |
|
| 61 | - $this->text = $text; |
|
| 62 | - $this->apiParas["text"] = $text; |
|
| 63 | - } |
|
| 59 | + public function setText($text) |
|
| 60 | + { |
|
| 61 | + $this->text = $text; |
|
| 62 | + $this->apiParas["text"] = $text; |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - public function getText() |
|
| 66 | - { |
|
| 67 | - return $this->text; |
|
| 68 | - } |
|
| 65 | + public function getText() |
|
| 66 | + { |
|
| 67 | + return $this->text; |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | - public function setUrl($url) |
|
| 71 | - { |
|
| 72 | - $this->url = $url; |
|
| 73 | - $this->apiParas["url"] = $url; |
|
| 74 | - } |
|
| 70 | + public function setUrl($url) |
|
| 71 | + { |
|
| 72 | + $this->url = $url; |
|
| 73 | + $this->apiParas["url"] = $url; |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - public function getUrl() |
|
| 77 | - { |
|
| 78 | - return $this->url; |
|
| 79 | - } |
|
| 76 | + public function getUrl() |
|
| 77 | + { |
|
| 78 | + return $this->url; |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - public function setUserId($userId) |
|
| 82 | - { |
|
| 83 | - $this->userId = $userId; |
|
| 84 | - $this->apiParas["user_id"] = $userId; |
|
| 85 | - } |
|
| 81 | + public function setUserId($userId) |
|
| 82 | + { |
|
| 83 | + $this->userId = $userId; |
|
| 84 | + $this->apiParas["user_id"] = $userId; |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | - public function getUserId() |
|
| 88 | - { |
|
| 89 | - return $this->userId; |
|
| 90 | - } |
|
| 87 | + public function getUserId() |
|
| 88 | + { |
|
| 89 | + return $this->userId; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | - public function getApiMethodName() |
|
| 93 | - { |
|
| 94 | - return "taobao.tbk.tpwd.create"; |
|
| 95 | - } |
|
| 92 | + public function getApiMethodName() |
|
| 93 | + { |
|
| 94 | + return "taobao.tbk.tpwd.create"; |
|
| 95 | + } |
|
| 96 | 96 | |
| 97 | - public function getApiParas() |
|
| 98 | - { |
|
| 99 | - return $this->apiParas; |
|
| 100 | - } |
|
| 97 | + public function getApiParas() |
|
| 98 | + { |
|
| 99 | + return $this->apiParas; |
|
| 100 | + } |
|
| 101 | 101 | |
| 102 | - public function check() |
|
| 103 | - { |
|
| 102 | + public function check() |
|
| 103 | + { |
|
| 104 | 104 | |
| 105 | - RequestCheckUtil::checkNotNull($this->text,"text"); |
|
| 106 | - RequestCheckUtil::checkNotNull($this->url,"url"); |
|
| 107 | - } |
|
| 105 | + RequestCheckUtil::checkNotNull($this->text,"text"); |
|
| 106 | + RequestCheckUtil::checkNotNull($this->url,"url"); |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - public function putOtherTextParam($key, $value) { |
|
| 110 | - $this->apiParas[$key] = $value; |
|
| 111 | - $this->$key = $value; |
|
| 112 | - } |
|
| 109 | + public function putOtherTextParam($key, $value) { |
|
| 110 | + $this->apiParas[$key] = $value; |
|
| 111 | + $this->$key = $value; |
|
| 112 | + } |
|
| 113 | 113 | } |
@@ -7,79 +7,79 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class KfcKeywordSearchRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。 |
|
| 10 | + /** |
|
| 11 | + * 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。 |
|
| 12 | 12 | |
| 13 | 13 | 这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。 |
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | 通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。 |
| 17 | - **/ |
|
| 18 | - private $apply; |
|
| 17 | + **/ |
|
| 18 | + private $apply; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * 需要过滤的文本信息 |
|
| 22 | - **/ |
|
| 23 | - private $content; |
|
| 20 | + /** |
|
| 21 | + * 需要过滤的文本信息 |
|
| 22 | + **/ |
|
| 23 | + private $content; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * 发布信息的淘宝会员名,可以不传 |
|
| 27 | - **/ |
|
| 28 | - private $nick; |
|
| 25 | + /** |
|
| 26 | + * 发布信息的淘宝会员名,可以不传 |
|
| 27 | + **/ |
|
| 28 | + private $nick; |
|
| 29 | 29 | |
| 30 | - private $apiParas = array(); |
|
| 30 | + private $apiParas = array(); |
|
| 31 | 31 | |
| 32 | - public function setApply($apply) |
|
| 33 | - { |
|
| 34 | - $this->apply = $apply; |
|
| 35 | - $this->apiParas["apply"] = $apply; |
|
| 36 | - } |
|
| 32 | + public function setApply($apply) |
|
| 33 | + { |
|
| 34 | + $this->apply = $apply; |
|
| 35 | + $this->apiParas["apply"] = $apply; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function getApply() |
|
| 39 | - { |
|
| 40 | - return $this->apply; |
|
| 41 | - } |
|
| 38 | + public function getApply() |
|
| 39 | + { |
|
| 40 | + return $this->apply; |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - public function setContent($content) |
|
| 44 | - { |
|
| 45 | - $this->content = $content; |
|
| 46 | - $this->apiParas["content"] = $content; |
|
| 47 | - } |
|
| 43 | + public function setContent($content) |
|
| 44 | + { |
|
| 45 | + $this->content = $content; |
|
| 46 | + $this->apiParas["content"] = $content; |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - public function getContent() |
|
| 50 | - { |
|
| 51 | - return $this->content; |
|
| 52 | - } |
|
| 49 | + public function getContent() |
|
| 50 | + { |
|
| 51 | + return $this->content; |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - public function setNick($nick) |
|
| 55 | - { |
|
| 56 | - $this->nick = $nick; |
|
| 57 | - $this->apiParas["nick"] = $nick; |
|
| 58 | - } |
|
| 54 | + public function setNick($nick) |
|
| 55 | + { |
|
| 56 | + $this->nick = $nick; |
|
| 57 | + $this->apiParas["nick"] = $nick; |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - public function getNick() |
|
| 61 | - { |
|
| 62 | - return $this->nick; |
|
| 63 | - } |
|
| 60 | + public function getNick() |
|
| 61 | + { |
|
| 62 | + return $this->nick; |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - public function getApiMethodName() |
|
| 66 | - { |
|
| 67 | - return "taobao.kfc.keyword.search"; |
|
| 68 | - } |
|
| 65 | + public function getApiMethodName() |
|
| 66 | + { |
|
| 67 | + return "taobao.kfc.keyword.search"; |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | - public function getApiParas() |
|
| 71 | - { |
|
| 72 | - return $this->apiParas; |
|
| 73 | - } |
|
| 70 | + public function getApiParas() |
|
| 71 | + { |
|
| 72 | + return $this->apiParas; |
|
| 73 | + } |
|
| 74 | 74 | |
| 75 | - public function check() |
|
| 76 | - { |
|
| 75 | + public function check() |
|
| 76 | + { |
|
| 77 | 77 | |
| 78 | - RequestCheckUtil::checkNotNull($this->content,"content"); |
|
| 79 | - } |
|
| 78 | + RequestCheckUtil::checkNotNull($this->content,"content"); |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - public function putOtherTextParam($key, $value) { |
|
| 82 | - $this->apiParas[$key] = $value; |
|
| 83 | - $this->$key = $value; |
|
| 84 | - } |
|
| 81 | + public function putOtherTextParam($key, $value) { |
|
| 82 | + $this->apiParas[$key] = $value; |
|
| 83 | + $this->$key = $value; |
|
| 84 | + } |
|
| 85 | 85 | } |
@@ -7,42 +7,42 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class TbkDgVegasTljInstanceReportRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 实例ID |
|
| 12 | - **/ |
|
| 13 | - private $rightsId; |
|
| 10 | + /** |
|
| 11 | + * 实例ID |
|
| 12 | + **/ |
|
| 13 | + private $rightsId; |
|
| 14 | 14 | |
| 15 | - private $apiParas = array(); |
|
| 15 | + private $apiParas = array(); |
|
| 16 | 16 | |
| 17 | - public function setRightsId($rightsId) |
|
| 18 | - { |
|
| 19 | - $this->rightsId = $rightsId; |
|
| 20 | - $this->apiParas["rights_id"] = $rightsId; |
|
| 21 | - } |
|
| 17 | + public function setRightsId($rightsId) |
|
| 18 | + { |
|
| 19 | + $this->rightsId = $rightsId; |
|
| 20 | + $this->apiParas["rights_id"] = $rightsId; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function getRightsId() |
|
| 24 | - { |
|
| 25 | - return $this->rightsId; |
|
| 26 | - } |
|
| 23 | + public function getRightsId() |
|
| 24 | + { |
|
| 25 | + return $this->rightsId; |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - public function getApiMethodName() |
|
| 29 | - { |
|
| 30 | - return "taobao.tbk.dg.vegas.tlj.instance.report"; |
|
| 31 | - } |
|
| 28 | + public function getApiMethodName() |
|
| 29 | + { |
|
| 30 | + return "taobao.tbk.dg.vegas.tlj.instance.report"; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - public function getApiParas() |
|
| 34 | - { |
|
| 35 | - return $this->apiParas; |
|
| 36 | - } |
|
| 33 | + public function getApiParas() |
|
| 34 | + { |
|
| 35 | + return $this->apiParas; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function check() |
|
| 39 | - { |
|
| 38 | + public function check() |
|
| 39 | + { |
|
| 40 | 40 | |
| 41 | - RequestCheckUtil::checkNotNull($this->rightsId,"rightsId"); |
|
| 42 | - } |
|
| 41 | + RequestCheckUtil::checkNotNull($this->rightsId,"rightsId"); |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function putOtherTextParam($key, $value) { |
|
| 45 | - $this->apiParas[$key] = $value; |
|
| 46 | - $this->$key = $value; |
|
| 47 | - } |
|
| 44 | + public function putOtherTextParam($key, $value) { |
|
| 45 | + $this->apiParas[$key] = $value; |
|
| 46 | + $this->$key = $value; |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -7,205 +7,205 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class TbkDgOptimusMaterialRequest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * mm_xxx_xxx_xxx的第三位 |
|
| 12 | - **/ |
|
| 13 | - private $adzoneId; |
|
| 10 | + /** |
|
| 11 | + * mm_xxx_xxx_xxx的第三位 |
|
| 12 | + **/ |
|
| 13 | + private $adzoneId; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * 内容专用-内容详情ID |
|
| 17 | - **/ |
|
| 18 | - private $contentId; |
|
| 15 | + /** |
|
| 16 | + * 内容专用-内容详情ID |
|
| 17 | + **/ |
|
| 18 | + private $contentId; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * 内容专用-内容渠道信息 |
|
| 22 | - **/ |
|
| 23 | - private $contentSource; |
|
| 20 | + /** |
|
| 21 | + * 内容专用-内容渠道信息 |
|
| 22 | + **/ |
|
| 23 | + private $contentSource; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * 智能匹配-设备号加密类型:MD5,类型为OAID时不传 |
|
| 27 | - **/ |
|
| 28 | - private $deviceEncrypt; |
|
| 25 | + /** |
|
| 26 | + * 智能匹配-设备号加密类型:MD5,类型为OAID时不传 |
|
| 27 | + **/ |
|
| 28 | + private $deviceEncrypt; |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID |
|
| 32 | - **/ |
|
| 33 | - private $deviceType; |
|
| 30 | + /** |
|
| 31 | + * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID |
|
| 32 | + **/ |
|
| 33 | + private $deviceType; |
|
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * 智能匹配-设备号加密后的值(MD5加密需32位小写),类型为OAID时传原始OAID值 |
|
| 37 | - **/ |
|
| 38 | - private $deviceValue; |
|
| 35 | + /** |
|
| 36 | + * 智能匹配-设备号加密后的值(MD5加密需32位小写),类型为OAID时传原始OAID值 |
|
| 37 | + **/ |
|
| 38 | + private $deviceValue; |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * 选品库投放id |
|
| 42 | - **/ |
|
| 43 | - private $favoritesId; |
|
| 40 | + /** |
|
| 41 | + * 选品库投放id |
|
| 42 | + **/ |
|
| 43 | + private $favoritesId; |
|
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * 商品ID,用于相似商品推荐 |
|
| 47 | - **/ |
|
| 48 | - private $itemId; |
|
| 45 | + /** |
|
| 46 | + * 商品ID,用于相似商品推荐 |
|
| 47 | + **/ |
|
| 48 | + private $itemId; |
|
| 49 | 49 | |
| 50 | - /** |
|
| 51 | - * 官方的物料Id(详细物料id见:https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a) |
|
| 52 | - **/ |
|
| 53 | - private $materialId; |
|
| 50 | + /** |
|
| 51 | + * 官方的物料Id(详细物料id见:https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a) |
|
| 52 | + **/ |
|
| 53 | + private $materialId; |
|
| 54 | 54 | |
| 55 | - /** |
|
| 56 | - * 第几页,默认:1 |
|
| 57 | - **/ |
|
| 58 | - private $pageNo; |
|
| 55 | + /** |
|
| 56 | + * 第几页,默认:1 |
|
| 57 | + **/ |
|
| 58 | + private $pageNo; |
|
| 59 | 59 | |
| 60 | - /** |
|
| 61 | - * 页大小,默认20,1~100 |
|
| 62 | - **/ |
|
| 63 | - private $pageSize; |
|
| 60 | + /** |
|
| 61 | + * 页大小,默认20,1~100 |
|
| 62 | + **/ |
|
| 63 | + private $pageSize; |
|
| 64 | 64 | |
| 65 | - private $apiParas = array(); |
|
| 65 | + private $apiParas = array(); |
|
| 66 | 66 | |
| 67 | - public function setAdzoneId($adzoneId) |
|
| 68 | - { |
|
| 69 | - $this->adzoneId = $adzoneId; |
|
| 70 | - $this->apiParas["adzone_id"] = $adzoneId; |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - public function getAdzoneId() |
|
| 74 | - { |
|
| 75 | - return $this->adzoneId; |
|
| 76 | - } |
|
| 77 | - |
|
| 78 | - public function setContentId($contentId) |
|
| 79 | - { |
|
| 80 | - $this->contentId = $contentId; |
|
| 81 | - $this->apiParas["content_id"] = $contentId; |
|
| 82 | - } |
|
| 83 | - |
|
| 84 | - public function getContentId() |
|
| 85 | - { |
|
| 86 | - return $this->contentId; |
|
| 87 | - } |
|
| 88 | - |
|
| 89 | - public function setContentSource($contentSource) |
|
| 90 | - { |
|
| 91 | - $this->contentSource = $contentSource; |
|
| 92 | - $this->apiParas["content_source"] = $contentSource; |
|
| 93 | - } |
|
| 94 | - |
|
| 95 | - public function getContentSource() |
|
| 96 | - { |
|
| 97 | - return $this->contentSource; |
|
| 98 | - } |
|
| 99 | - |
|
| 100 | - public function setDeviceEncrypt($deviceEncrypt) |
|
| 101 | - { |
|
| 102 | - $this->deviceEncrypt = $deviceEncrypt; |
|
| 103 | - $this->apiParas["device_encrypt"] = $deviceEncrypt; |
|
| 104 | - } |
|
| 105 | - |
|
| 106 | - public function getDeviceEncrypt() |
|
| 107 | - { |
|
| 108 | - return $this->deviceEncrypt; |
|
| 109 | - } |
|
| 110 | - |
|
| 111 | - public function setDeviceType($deviceType) |
|
| 112 | - { |
|
| 113 | - $this->deviceType = $deviceType; |
|
| 114 | - $this->apiParas["device_type"] = $deviceType; |
|
| 115 | - } |
|
| 116 | - |
|
| 117 | - public function getDeviceType() |
|
| 118 | - { |
|
| 119 | - return $this->deviceType; |
|
| 120 | - } |
|
| 121 | - |
|
| 122 | - public function setDeviceValue($deviceValue) |
|
| 123 | - { |
|
| 124 | - $this->deviceValue = $deviceValue; |
|
| 125 | - $this->apiParas["device_value"] = $deviceValue; |
|
| 126 | - } |
|
| 127 | - |
|
| 128 | - public function getDeviceValue() |
|
| 129 | - { |
|
| 130 | - return $this->deviceValue; |
|
| 131 | - } |
|
| 132 | - |
|
| 133 | - public function setFavoritesId($favoritesId) |
|
| 134 | - { |
|
| 135 | - $this->favoritesId = $favoritesId; |
|
| 136 | - $this->apiParas["favorites_id"] = $favoritesId; |
|
| 137 | - } |
|
| 138 | - |
|
| 139 | - public function getFavoritesId() |
|
| 140 | - { |
|
| 141 | - return $this->favoritesId; |
|
| 142 | - } |
|
| 143 | - |
|
| 144 | - public function setItemId($itemId) |
|
| 145 | - { |
|
| 146 | - $this->itemId = $itemId; |
|
| 147 | - $this->apiParas["item_id"] = $itemId; |
|
| 148 | - } |
|
| 149 | - |
|
| 150 | - public function getItemId() |
|
| 151 | - { |
|
| 152 | - return $this->itemId; |
|
| 153 | - } |
|
| 154 | - |
|
| 155 | - public function setMaterialId($materialId) |
|
| 156 | - { |
|
| 157 | - $this->materialId = $materialId; |
|
| 158 | - $this->apiParas["material_id"] = $materialId; |
|
| 159 | - } |
|
| 160 | - |
|
| 161 | - public function getMaterialId() |
|
| 162 | - { |
|
| 163 | - return $this->materialId; |
|
| 164 | - } |
|
| 165 | - |
|
| 166 | - public function setPageNo($pageNo) |
|
| 167 | - { |
|
| 168 | - $this->pageNo = $pageNo; |
|
| 169 | - $this->apiParas["page_no"] = $pageNo; |
|
| 170 | - } |
|
| 171 | - |
|
| 172 | - public function getPageNo() |
|
| 173 | - { |
|
| 174 | - return $this->pageNo; |
|
| 175 | - } |
|
| 176 | - |
|
| 177 | - public function setPageSize($pageSize) |
|
| 178 | - { |
|
| 179 | - $this->pageSize = $pageSize; |
|
| 180 | - $this->apiParas["page_size"] = $pageSize; |
|
| 181 | - } |
|
| 182 | - |
|
| 183 | - public function getPageSize() |
|
| 184 | - { |
|
| 185 | - return $this->pageSize; |
|
| 186 | - } |
|
| 187 | - |
|
| 188 | - public function getApiMethodName() |
|
| 189 | - { |
|
| 190 | - return "taobao.tbk.dg.optimus.material"; |
|
| 191 | - } |
|
| 67 | + public function setAdzoneId($adzoneId) |
|
| 68 | + { |
|
| 69 | + $this->adzoneId = $adzoneId; |
|
| 70 | + $this->apiParas["adzone_id"] = $adzoneId; |
|
| 71 | + } |
|
| 72 | + |
|
| 73 | + public function getAdzoneId() |
|
| 74 | + { |
|
| 75 | + return $this->adzoneId; |
|
| 76 | + } |
|
| 77 | + |
|
| 78 | + public function setContentId($contentId) |
|
| 79 | + { |
|
| 80 | + $this->contentId = $contentId; |
|
| 81 | + $this->apiParas["content_id"] = $contentId; |
|
| 82 | + } |
|
| 83 | + |
|
| 84 | + public function getContentId() |
|
| 85 | + { |
|
| 86 | + return $this->contentId; |
|
| 87 | + } |
|
| 88 | + |
|
| 89 | + public function setContentSource($contentSource) |
|
| 90 | + { |
|
| 91 | + $this->contentSource = $contentSource; |
|
| 92 | + $this->apiParas["content_source"] = $contentSource; |
|
| 93 | + } |
|
| 94 | + |
|
| 95 | + public function getContentSource() |
|
| 96 | + { |
|
| 97 | + return $this->contentSource; |
|
| 98 | + } |
|
| 99 | + |
|
| 100 | + public function setDeviceEncrypt($deviceEncrypt) |
|
| 101 | + { |
|
| 102 | + $this->deviceEncrypt = $deviceEncrypt; |
|
| 103 | + $this->apiParas["device_encrypt"] = $deviceEncrypt; |
|
| 104 | + } |
|
| 105 | + |
|
| 106 | + public function getDeviceEncrypt() |
|
| 107 | + { |
|
| 108 | + return $this->deviceEncrypt; |
|
| 109 | + } |
|
| 110 | + |
|
| 111 | + public function setDeviceType($deviceType) |
|
| 112 | + { |
|
| 113 | + $this->deviceType = $deviceType; |
|
| 114 | + $this->apiParas["device_type"] = $deviceType; |
|
| 115 | + } |
|
| 116 | + |
|
| 117 | + public function getDeviceType() |
|
| 118 | + { |
|
| 119 | + return $this->deviceType; |
|
| 120 | + } |
|
| 121 | + |
|
| 122 | + public function setDeviceValue($deviceValue) |
|
| 123 | + { |
|
| 124 | + $this->deviceValue = $deviceValue; |
|
| 125 | + $this->apiParas["device_value"] = $deviceValue; |
|
| 126 | + } |
|
| 127 | + |
|
| 128 | + public function getDeviceValue() |
|
| 129 | + { |
|
| 130 | + return $this->deviceValue; |
|
| 131 | + } |
|
| 132 | + |
|
| 133 | + public function setFavoritesId($favoritesId) |
|
| 134 | + { |
|
| 135 | + $this->favoritesId = $favoritesId; |
|
| 136 | + $this->apiParas["favorites_id"] = $favoritesId; |
|
| 137 | + } |
|
| 138 | + |
|
| 139 | + public function getFavoritesId() |
|
| 140 | + { |
|
| 141 | + return $this->favoritesId; |
|
| 142 | + } |
|
| 143 | + |
|
| 144 | + public function setItemId($itemId) |
|
| 145 | + { |
|
| 146 | + $this->itemId = $itemId; |
|
| 147 | + $this->apiParas["item_id"] = $itemId; |
|
| 148 | + } |
|
| 149 | + |
|
| 150 | + public function getItemId() |
|
| 151 | + { |
|
| 152 | + return $this->itemId; |
|
| 153 | + } |
|
| 154 | + |
|
| 155 | + public function setMaterialId($materialId) |
|
| 156 | + { |
|
| 157 | + $this->materialId = $materialId; |
|
| 158 | + $this->apiParas["material_id"] = $materialId; |
|
| 159 | + } |
|
| 160 | + |
|
| 161 | + public function getMaterialId() |
|
| 162 | + { |
|
| 163 | + return $this->materialId; |
|
| 164 | + } |
|
| 165 | + |
|
| 166 | + public function setPageNo($pageNo) |
|
| 167 | + { |
|
| 168 | + $this->pageNo = $pageNo; |
|
| 169 | + $this->apiParas["page_no"] = $pageNo; |
|
| 170 | + } |
|
| 171 | + |
|
| 172 | + public function getPageNo() |
|
| 173 | + { |
|
| 174 | + return $this->pageNo; |
|
| 175 | + } |
|
| 176 | + |
|
| 177 | + public function setPageSize($pageSize) |
|
| 178 | + { |
|
| 179 | + $this->pageSize = $pageSize; |
|
| 180 | + $this->apiParas["page_size"] = $pageSize; |
|
| 181 | + } |
|
| 182 | + |
|
| 183 | + public function getPageSize() |
|
| 184 | + { |
|
| 185 | + return $this->pageSize; |
|
| 186 | + } |
|
| 187 | + |
|
| 188 | + public function getApiMethodName() |
|
| 189 | + { |
|
| 190 | + return "taobao.tbk.dg.optimus.material"; |
|
| 191 | + } |
|
| 192 | 192 | |
| 193 | - public function getApiParas() |
|
| 194 | - { |
|
| 195 | - return $this->apiParas; |
|
| 196 | - } |
|
| 193 | + public function getApiParas() |
|
| 194 | + { |
|
| 195 | + return $this->apiParas; |
|
| 196 | + } |
|
| 197 | 197 | |
| 198 | - public function check() |
|
| 199 | - { |
|
| 198 | + public function check() |
|
| 199 | + { |
|
| 200 | 200 | |
| 201 | - RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); |
|
| 202 | - RequestCheckUtil::checkNotNull($this->materialId,"materialId"); |
|
| 203 | - RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); |
|
| 204 | - RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); |
|
| 205 | - } |
|
| 201 | + RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); |
|
| 202 | + RequestCheckUtil::checkNotNull($this->materialId,"materialId"); |
|
| 203 | + RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); |
|
| 204 | + RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); |
|
| 205 | + } |
|
| 206 | 206 | |
| 207 | - public function putOtherTextParam($key, $value) { |
|
| 208 | - $this->apiParas[$key] = $value; |
|
| 209 | - $this->$key = $value; |
|
| 210 | - } |
|
| 207 | + public function putOtherTextParam($key, $value) { |
|
| 208 | + $this->apiParas[$key] = $value; |
|
| 209 | + $this->$key = $value; |
|
| 210 | + } |
|
| 211 | 211 | } |