@@ -7,44 +7,44 @@ |
||
7 | 7 | class RegisterInfoDto |
8 | 8 | { |
9 | 9 | |
10 | - /** |
|
11 | - * 渠道独有 -经营类型 |
|
12 | - **/ |
|
13 | - public $career; |
|
14 | - |
|
15 | - /** |
|
16 | - * 渠道独有 -对应的证件证件类型编号 |
|
17 | - **/ |
|
18 | - public $certify_number; |
|
19 | - |
|
20 | - /** |
|
21 | - * 渠道独有 -详细地址 |
|
22 | - **/ |
|
23 | - public $detail_address; |
|
24 | - |
|
25 | - /** |
|
26 | - * 渠道独有 -地区 |
|
27 | - **/ |
|
28 | - public $location; |
|
29 | - |
|
30 | - /** |
|
31 | - * 渠道独有 -手机号码 |
|
32 | - **/ |
|
33 | - public $phone_number; |
|
34 | - |
|
35 | - /** |
|
36 | - * 渠道独有 -证件类型 |
|
37 | - **/ |
|
38 | - public $shop_certify_type; |
|
39 | - |
|
40 | - /** |
|
41 | - * 渠道独有 -店铺名称 |
|
42 | - **/ |
|
43 | - public $shop_name; |
|
44 | - |
|
45 | - /** |
|
46 | - * 渠道独有 -店铺类型 |
|
47 | - **/ |
|
48 | - public $shop_type; |
|
10 | + /** |
|
11 | + * 渠道独有 -经营类型 |
|
12 | + **/ |
|
13 | + public $career; |
|
14 | + |
|
15 | + /** |
|
16 | + * 渠道独有 -对应的证件证件类型编号 |
|
17 | + **/ |
|
18 | + public $certify_number; |
|
19 | + |
|
20 | + /** |
|
21 | + * 渠道独有 -详细地址 |
|
22 | + **/ |
|
23 | + public $detail_address; |
|
24 | + |
|
25 | + /** |
|
26 | + * 渠道独有 -地区 |
|
27 | + **/ |
|
28 | + public $location; |
|
29 | + |
|
30 | + /** |
|
31 | + * 渠道独有 -手机号码 |
|
32 | + **/ |
|
33 | + public $phone_number; |
|
34 | + |
|
35 | + /** |
|
36 | + * 渠道独有 -证件类型 |
|
37 | + **/ |
|
38 | + public $shop_certify_type; |
|
39 | + |
|
40 | + /** |
|
41 | + * 渠道独有 -店铺名称 |
|
42 | + **/ |
|
43 | + public $shop_name; |
|
44 | + |
|
45 | + /** |
|
46 | + * 渠道独有 -店铺类型 |
|
47 | + **/ |
|
48 | + public $shop_type; |
|
49 | 49 | } |
50 | 50 | ?> |
51 | 51 | \ No newline at end of file |
@@ -2,46 +2,46 @@ |
||
2 | 2 | |
3 | 3 | class ApplicationVar |
4 | 4 | { |
5 | - var $save_file; |
|
6 | - var $application = null; |
|
7 | - var $app_data = ''; |
|
8 | - var $__writed = false; |
|
5 | + var $save_file; |
|
6 | + var $application = null; |
|
7 | + var $app_data = ''; |
|
8 | + var $__writed = false; |
|
9 | 9 | |
10 | - function __construct() |
|
11 | - { |
|
10 | + function __construct() |
|
11 | + { |
|
12 | 12 | $this->save_file = __DIR__.'/httpdns.conf' ; |
13 | - $this->application = array(); |
|
14 | - } |
|
13 | + $this->application = array(); |
|
14 | + } |
|
15 | 15 | |
16 | - public function setValue($var_name,$var_value) |
|
17 | - { |
|
18 | - if (!is_string($var_name) || empty($var_name)) |
|
19 | - return false; |
|
16 | + public function setValue($var_name,$var_value) |
|
17 | + { |
|
18 | + if (!is_string($var_name) || empty($var_name)) |
|
19 | + return false; |
|
20 | 20 | |
21 | - $this->application[$var_name] = $var_value; |
|
22 | - } |
|
21 | + $this->application[$var_name] = $var_value; |
|
22 | + } |
|
23 | 23 | |
24 | - public function write(){ |
|
25 | - $this->app_data = @serialize($this->application); |
|
26 | - $this->__writeToFile(); |
|
27 | - } |
|
24 | + public function write(){ |
|
25 | + $this->app_data = @serialize($this->application); |
|
26 | + $this->__writeToFile(); |
|
27 | + } |
|
28 | 28 | |
29 | - public function getValue() |
|
30 | - { |
|
31 | - if (!is_file($this->save_file)) |
|
32 | - $this->__writeToFile(); |
|
33 | - return @unserialize(@file_get_contents($this->save_file)); |
|
34 | - } |
|
29 | + public function getValue() |
|
30 | + { |
|
31 | + if (!is_file($this->save_file)) |
|
32 | + $this->__writeToFile(); |
|
33 | + return @unserialize(@file_get_contents($this->save_file)); |
|
34 | + } |
|
35 | 35 | |
36 | - function __writeToFile() |
|
37 | - { |
|
38 | - $fp = @fopen($this->save_file,"w"); |
|
39 | - if(flock($fp , LOCK_EX | LOCK_NB)){ |
|
40 | - @fwrite($fp,$this->app_data); |
|
41 | - flock($fp , LOCK_UN); |
|
42 | - } |
|
43 | - @fclose($fp); |
|
44 | - } |
|
36 | + function __writeToFile() |
|
37 | + { |
|
38 | + $fp = @fopen($this->save_file,"w"); |
|
39 | + if(flock($fp , LOCK_EX | LOCK_NB)){ |
|
40 | + @fwrite($fp,$this->app_data); |
|
41 | + flock($fp , LOCK_UN); |
|
42 | + } |
|
43 | + @fclose($fp); |
|
44 | + } |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | ?> |
48 | 48 | \ No newline at end of file |
@@ -1,43 +1,43 @@ |
||
1 | 1 | <?php |
2 | 2 | class TopLogger |
3 | 3 | { |
4 | - public $conf = array( |
|
5 | - "separator" => "\t", |
|
6 | - "log_file" => "" |
|
7 | - ); |
|
4 | + public $conf = array( |
|
5 | + "separator" => "\t", |
|
6 | + "log_file" => "" |
|
7 | + ); |
|
8 | 8 | |
9 | - private $fileHandle; |
|
9 | + private $fileHandle; |
|
10 | 10 | |
11 | - protected function getFileHandle() |
|
12 | - { |
|
13 | - if (null === $this->fileHandle) |
|
14 | - { |
|
15 | - if (empty($this->conf["log_file"])) |
|
16 | - { |
|
17 | - trigger_error("no log file spcified."); |
|
18 | - } |
|
19 | - $logDir = dirname($this->conf["log_file"]); |
|
20 | - if (!is_dir($logDir)) |
|
21 | - { |
|
22 | - mkdir($logDir, 0777, true); |
|
23 | - } |
|
24 | - $this->fileHandle = fopen($this->conf["log_file"], "a"); |
|
25 | - } |
|
26 | - return $this->fileHandle; |
|
27 | - } |
|
11 | + protected function getFileHandle() |
|
12 | + { |
|
13 | + if (null === $this->fileHandle) |
|
14 | + { |
|
15 | + if (empty($this->conf["log_file"])) |
|
16 | + { |
|
17 | + trigger_error("no log file spcified."); |
|
18 | + } |
|
19 | + $logDir = dirname($this->conf["log_file"]); |
|
20 | + if (!is_dir($logDir)) |
|
21 | + { |
|
22 | + mkdir($logDir, 0777, true); |
|
23 | + } |
|
24 | + $this->fileHandle = fopen($this->conf["log_file"], "a"); |
|
25 | + } |
|
26 | + return $this->fileHandle; |
|
27 | + } |
|
28 | 28 | |
29 | - public function log($logData) |
|
30 | - { |
|
31 | - if ("" == $logData || array() == $logData) |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
35 | - if (is_array($logData)) |
|
36 | - { |
|
37 | - $logData = implode($this->conf["separator"], $logData); |
|
38 | - } |
|
39 | - $logData = $logData. "\n"; |
|
40 | - fwrite($this->getFileHandle(), $logData); |
|
41 | - } |
|
29 | + public function log($logData) |
|
30 | + { |
|
31 | + if ("" == $logData || array() == $logData) |
|
32 | + { |
|
33 | + return false; |
|
34 | + } |
|
35 | + if (is_array($logData)) |
|
36 | + { |
|
37 | + $logData = implode($this->conf["separator"], $logData); |
|
38 | + } |
|
39 | + $logData = $logData. "\n"; |
|
40 | + fwrite($this->getFileHandle(), $logData); |
|
41 | + } |
|
42 | 42 | } |
43 | 43 | ?> |
44 | 44 | \ No newline at end of file |
@@ -7,58 +7,58 @@ |
||
7 | 7 | */ |
8 | 8 | class TopSdkFeedbackUploadRequest |
9 | 9 | { |
10 | - /** |
|
11 | - * 具体内容,json形式 |
|
12 | - **/ |
|
13 | - private $content; |
|
10 | + /** |
|
11 | + * 具体内容,json形式 |
|
12 | + **/ |
|
13 | + private $content; |
|
14 | 14 | |
15 | - /** |
|
16 | - * 1、回传加密信息 |
|
17 | - **/ |
|
18 | - private $type; |
|
15 | + /** |
|
16 | + * 1、回传加密信息 |
|
17 | + **/ |
|
18 | + private $type; |
|
19 | 19 | |
20 | - private $apiParas = array(); |
|
20 | + private $apiParas = array(); |
|
21 | 21 | |
22 | - public function setContent($content) |
|
23 | - { |
|
24 | - $this->content = $content; |
|
25 | - $this->apiParas["content"] = $content; |
|
26 | - } |
|
22 | + public function setContent($content) |
|
23 | + { |
|
24 | + $this->content = $content; |
|
25 | + $this->apiParas["content"] = $content; |
|
26 | + } |
|
27 | 27 | |
28 | - public function getContent() |
|
29 | - { |
|
30 | - return $this->content; |
|
31 | - } |
|
28 | + public function getContent() |
|
29 | + { |
|
30 | + return $this->content; |
|
31 | + } |
|
32 | 32 | |
33 | - public function setType($type) |
|
34 | - { |
|
35 | - $this->type = $type; |
|
36 | - $this->apiParas["type"] = $type; |
|
37 | - } |
|
33 | + public function setType($type) |
|
34 | + { |
|
35 | + $this->type = $type; |
|
36 | + $this->apiParas["type"] = $type; |
|
37 | + } |
|
38 | 38 | |
39 | - public function getType() |
|
40 | - { |
|
41 | - return $this->type; |
|
42 | - } |
|
39 | + public function getType() |
|
40 | + { |
|
41 | + return $this->type; |
|
42 | + } |
|
43 | 43 | |
44 | - public function getApiMethodName() |
|
45 | - { |
|
46 | - return "taobao.top.sdk.feedback.upload"; |
|
47 | - } |
|
44 | + public function getApiMethodName() |
|
45 | + { |
|
46 | + return "taobao.top.sdk.feedback.upload"; |
|
47 | + } |
|
48 | 48 | |
49 | - public function getApiParas() |
|
50 | - { |
|
51 | - return $this->apiParas; |
|
52 | - } |
|
49 | + public function getApiParas() |
|
50 | + { |
|
51 | + return $this->apiParas; |
|
52 | + } |
|
53 | 53 | |
54 | - public function check() |
|
55 | - { |
|
54 | + public function check() |
|
55 | + { |
|
56 | 56 | |
57 | - RequestCheckUtil::checkNotNull($this->type,"type"); |
|
58 | - } |
|
57 | + RequestCheckUtil::checkNotNull($this->type,"type"); |
|
58 | + } |
|
59 | 59 | |
60 | - public function putOtherTextParam($key, $value) { |
|
61 | - $this->apiParas[$key] = $value; |
|
62 | - $this->$key = $value; |
|
63 | - } |
|
60 | + public function putOtherTextParam($key, $value) { |
|
61 | + $this->apiParas[$key] = $value; |
|
62 | + $this->$key = $value; |
|
63 | + } |
|
64 | 64 | } |
@@ -7,124 +7,124 @@ |
||
7 | 7 | */ |
8 | 8 | class TbkDgNewuserOrderGetRequest |
9 | 9 | { |
10 | - /** |
|
11 | - * 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 |
|
12 | - **/ |
|
13 | - private $activityId; |
|
10 | + /** |
|
11 | + * 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 |
|
12 | + **/ |
|
13 | + private $activityId; |
|
14 | 14 | |
15 | - /** |
|
16 | - * mm_xxx_xxx_xxx的第三位 |
|
17 | - **/ |
|
18 | - private $adzoneId; |
|
15 | + /** |
|
16 | + * mm_xxx_xxx_xxx的第三位 |
|
17 | + **/ |
|
18 | + private $adzoneId; |
|
19 | 19 | |
20 | - /** |
|
21 | - * 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间 |
|
22 | - **/ |
|
23 | - private $endTime; |
|
20 | + /** |
|
21 | + * 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间 |
|
22 | + **/ |
|
23 | + private $endTime; |
|
24 | 24 | |
25 | - /** |
|
26 | - * 页码,默认1 |
|
27 | - **/ |
|
28 | - private $pageNo; |
|
25 | + /** |
|
26 | + * 页码,默认1 |
|
27 | + **/ |
|
28 | + private $pageNo; |
|
29 | 29 | |
30 | - /** |
|
31 | - * 页大小,默认20,1~100 |
|
32 | - **/ |
|
33 | - private $pageSize; |
|
30 | + /** |
|
31 | + * 页大小,默认20,1~100 |
|
32 | + **/ |
|
33 | + private $pageSize; |
|
34 | 34 | |
35 | - /** |
|
36 | - * 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间 |
|
37 | - **/ |
|
38 | - private $startTime; |
|
35 | + /** |
|
36 | + * 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间 |
|
37 | + **/ |
|
38 | + private $startTime; |
|
39 | 39 | |
40 | - private $apiParas = array(); |
|
40 | + private $apiParas = array(); |
|
41 | 41 | |
42 | - public function setActivityId($activityId) |
|
43 | - { |
|
44 | - $this->activityId = $activityId; |
|
45 | - $this->apiParas["activity_id"] = $activityId; |
|
46 | - } |
|
42 | + public function setActivityId($activityId) |
|
43 | + { |
|
44 | + $this->activityId = $activityId; |
|
45 | + $this->apiParas["activity_id"] = $activityId; |
|
46 | + } |
|
47 | 47 | |
48 | - public function getActivityId() |
|
49 | - { |
|
50 | - return $this->activityId; |
|
51 | - } |
|
48 | + public function getActivityId() |
|
49 | + { |
|
50 | + return $this->activityId; |
|
51 | + } |
|
52 | 52 | |
53 | - public function setAdzoneId($adzoneId) |
|
54 | - { |
|
55 | - $this->adzoneId = $adzoneId; |
|
56 | - $this->apiParas["adzone_id"] = $adzoneId; |
|
57 | - } |
|
53 | + public function setAdzoneId($adzoneId) |
|
54 | + { |
|
55 | + $this->adzoneId = $adzoneId; |
|
56 | + $this->apiParas["adzone_id"] = $adzoneId; |
|
57 | + } |
|
58 | 58 | |
59 | - public function getAdzoneId() |
|
60 | - { |
|
61 | - return $this->adzoneId; |
|
62 | - } |
|
59 | + public function getAdzoneId() |
|
60 | + { |
|
61 | + return $this->adzoneId; |
|
62 | + } |
|
63 | 63 | |
64 | - public function setEndTime($endTime) |
|
65 | - { |
|
66 | - $this->endTime = $endTime; |
|
67 | - $this->apiParas["end_time"] = $endTime; |
|
68 | - } |
|
64 | + public function setEndTime($endTime) |
|
65 | + { |
|
66 | + $this->endTime = $endTime; |
|
67 | + $this->apiParas["end_time"] = $endTime; |
|
68 | + } |
|
69 | 69 | |
70 | - public function getEndTime() |
|
71 | - { |
|
72 | - return $this->endTime; |
|
73 | - } |
|
70 | + public function getEndTime() |
|
71 | + { |
|
72 | + return $this->endTime; |
|
73 | + } |
|
74 | 74 | |
75 | - public function setPageNo($pageNo) |
|
76 | - { |
|
77 | - $this->pageNo = $pageNo; |
|
78 | - $this->apiParas["page_no"] = $pageNo; |
|
79 | - } |
|
75 | + public function setPageNo($pageNo) |
|
76 | + { |
|
77 | + $this->pageNo = $pageNo; |
|
78 | + $this->apiParas["page_no"] = $pageNo; |
|
79 | + } |
|
80 | 80 | |
81 | - public function getPageNo() |
|
82 | - { |
|
83 | - return $this->pageNo; |
|
84 | - } |
|
81 | + public function getPageNo() |
|
82 | + { |
|
83 | + return $this->pageNo; |
|
84 | + } |
|
85 | 85 | |
86 | - public function setPageSize($pageSize) |
|
87 | - { |
|
88 | - $this->pageSize = $pageSize; |
|
89 | - $this->apiParas["page_size"] = $pageSize; |
|
90 | - } |
|
86 | + public function setPageSize($pageSize) |
|
87 | + { |
|
88 | + $this->pageSize = $pageSize; |
|
89 | + $this->apiParas["page_size"] = $pageSize; |
|
90 | + } |
|
91 | 91 | |
92 | - public function getPageSize() |
|
93 | - { |
|
94 | - return $this->pageSize; |
|
95 | - } |
|
92 | + public function getPageSize() |
|
93 | + { |
|
94 | + return $this->pageSize; |
|
95 | + } |
|
96 | 96 | |
97 | - public function setStartTime($startTime) |
|
98 | - { |
|
99 | - $this->startTime = $startTime; |
|
100 | - $this->apiParas["start_time"] = $startTime; |
|
101 | - } |
|
97 | + public function setStartTime($startTime) |
|
98 | + { |
|
99 | + $this->startTime = $startTime; |
|
100 | + $this->apiParas["start_time"] = $startTime; |
|
101 | + } |
|
102 | 102 | |
103 | - public function getStartTime() |
|
104 | - { |
|
105 | - return $this->startTime; |
|
106 | - } |
|
103 | + public function getStartTime() |
|
104 | + { |
|
105 | + return $this->startTime; |
|
106 | + } |
|
107 | 107 | |
108 | - public function getApiMethodName() |
|
109 | - { |
|
110 | - return "taobao.tbk.dg.newuser.order.get"; |
|
111 | - } |
|
108 | + public function getApiMethodName() |
|
109 | + { |
|
110 | + return "taobao.tbk.dg.newuser.order.get"; |
|
111 | + } |
|
112 | 112 | |
113 | - public function getApiParas() |
|
114 | - { |
|
115 | - return $this->apiParas; |
|
116 | - } |
|
113 | + public function getApiParas() |
|
114 | + { |
|
115 | + return $this->apiParas; |
|
116 | + } |
|
117 | 117 | |
118 | - public function check() |
|
119 | - { |
|
118 | + public function check() |
|
119 | + { |
|
120 | 120 | |
121 | - RequestCheckUtil::checkNotNull($this->activityId,"activityId"); |
|
122 | - RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); |
|
123 | - RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); |
|
124 | - } |
|
121 | + RequestCheckUtil::checkNotNull($this->activityId,"activityId"); |
|
122 | + RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); |
|
123 | + RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); |
|
124 | + } |
|
125 | 125 | |
126 | - public function putOtherTextParam($key, $value) { |
|
127 | - $this->apiParas[$key] = $value; |
|
128 | - $this->$key = $value; |
|
129 | - } |
|
126 | + public function putOtherTextParam($key, $value) { |
|
127 | + $this->apiParas[$key] = $value; |
|
128 | + $this->$key = $value; |
|
129 | + } |
|
130 | 130 | } |
@@ -7,187 +7,187 @@ |
||
7 | 7 | */ |
8 | 8 | class TbkOrderDetailsGetRequest |
9 | 9 | { |
10 | - /** |
|
11 | - * 订单查询结束时间,订单开始时间至订单结束时间,中间时间段日常要求不超过3个小时,但如618、双11、年货节等大促期间预估时间段不可超过20分钟,超过会提示错误,调用时请务必注意时间段的选择,以保证亲能正常调用! |
|
12 | - **/ |
|
13 | - private $endTime; |
|
10 | + /** |
|
11 | + * 订单查询结束时间,订单开始时间至订单结束时间,中间时间段日常要求不超过3个小时,但如618、双11、年货节等大促期间预估时间段不可超过20分钟,超过会提示错误,调用时请务必注意时间段的选择,以保证亲能正常调用! |
|
12 | + **/ |
|
13 | + private $endTime; |
|
14 | 14 | |
15 | - /** |
|
16 | - * 跳转类型,当向前或者向后翻页必须提供,-1: 向前翻页,1:向后翻页 |
|
17 | - **/ |
|
18 | - private $jumpType; |
|
15 | + /** |
|
16 | + * 跳转类型,当向前或者向后翻页必须提供,-1: 向前翻页,1:向后翻页 |
|
17 | + **/ |
|
18 | + private $jumpType; |
|
19 | 19 | |
20 | - /** |
|
21 | - * 推广者角色类型,2:二方,3:三方,不传,表示所有角色 |
|
22 | - **/ |
|
23 | - private $memberType; |
|
20 | + /** |
|
21 | + * 推广者角色类型,2:二方,3:三方,不传,表示所有角色 |
|
22 | + **/ |
|
23 | + private $memberType; |
|
24 | 24 | |
25 | - /** |
|
26 | - * 场景订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1 |
|
27 | - **/ |
|
28 | - private $orderScene; |
|
25 | + /** |
|
26 | + * 场景订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1 |
|
27 | + **/ |
|
28 | + private $orderScene; |
|
29 | 29 | |
30 | - /** |
|
31 | - * 第几页,默认1,1~100 |
|
32 | - **/ |
|
33 | - private $pageNo; |
|
30 | + /** |
|
31 | + * 第几页,默认1,1~100 |
|
32 | + **/ |
|
33 | + private $pageNo; |
|
34 | 34 | |
35 | - /** |
|
36 | - * 页大小,默认20,1~100 |
|
37 | - **/ |
|
38 | - private $pageSize; |
|
35 | + /** |
|
36 | + * 页大小,默认20,1~100 |
|
37 | + **/ |
|
38 | + private $pageSize; |
|
39 | 39 | |
40 | - /** |
|
41 | - * 位点,除第一页之外,都需要传递;前端原样返回。 |
|
42 | - **/ |
|
43 | - private $positionIndex; |
|
40 | + /** |
|
41 | + * 位点,除第一页之外,都需要传递;前端原样返回。 |
|
42 | + **/ |
|
43 | + private $positionIndex; |
|
44 | 44 | |
45 | - /** |
|
46 | - * 查询时间类型,1:按照订单淘客创建时间查询,2:按照订单淘客付款时间查询,3:按照订单淘客结算时间查询 |
|
47 | - **/ |
|
48 | - private $queryType; |
|
45 | + /** |
|
46 | + * 查询时间类型,1:按照订单淘客创建时间查询,2:按照订单淘客付款时间查询,3:按照订单淘客结算时间查询 |
|
47 | + **/ |
|
48 | + private $queryType; |
|
49 | 49 | |
50 | - /** |
|
51 | - * 订单查询开始时间 |
|
52 | - **/ |
|
53 | - private $startTime; |
|
50 | + /** |
|
51 | + * 订单查询开始时间 |
|
52 | + **/ |
|
53 | + private $startTime; |
|
54 | 54 | |
55 | - /** |
|
56 | - * 淘客订单状态,12-付款,13-关闭,14-确认收货,3-结算成功;不传,表示所有状态 |
|
57 | - **/ |
|
58 | - private $tkStatus; |
|
55 | + /** |
|
56 | + * 淘客订单状态,12-付款,13-关闭,14-确认收货,3-结算成功;不传,表示所有状态 |
|
57 | + **/ |
|
58 | + private $tkStatus; |
|
59 | 59 | |
60 | - private $apiParas = array(); |
|
60 | + private $apiParas = array(); |
|
61 | 61 | |
62 | - public function setEndTime($endTime) |
|
63 | - { |
|
64 | - $this->endTime = $endTime; |
|
65 | - $this->apiParas["end_time"] = $endTime; |
|
66 | - } |
|
67 | - |
|
68 | - public function getEndTime() |
|
69 | - { |
|
70 | - return $this->endTime; |
|
71 | - } |
|
72 | - |
|
73 | - public function setJumpType($jumpType) |
|
74 | - { |
|
75 | - $this->jumpType = $jumpType; |
|
76 | - $this->apiParas["jump_type"] = $jumpType; |
|
77 | - } |
|
78 | - |
|
79 | - public function getJumpType() |
|
80 | - { |
|
81 | - return $this->jumpType; |
|
82 | - } |
|
83 | - |
|
84 | - public function setMemberType($memberType) |
|
85 | - { |
|
86 | - $this->memberType = $memberType; |
|
87 | - $this->apiParas["member_type"] = $memberType; |
|
88 | - } |
|
89 | - |
|
90 | - public function getMemberType() |
|
91 | - { |
|
92 | - return $this->memberType; |
|
93 | - } |
|
94 | - |
|
95 | - public function setOrderScene($orderScene) |
|
96 | - { |
|
97 | - $this->orderScene = $orderScene; |
|
98 | - $this->apiParas["order_scene"] = $orderScene; |
|
99 | - } |
|
100 | - |
|
101 | - public function getOrderScene() |
|
102 | - { |
|
103 | - return $this->orderScene; |
|
104 | - } |
|
105 | - |
|
106 | - public function setPageNo($pageNo) |
|
107 | - { |
|
108 | - $this->pageNo = $pageNo; |
|
109 | - $this->apiParas["page_no"] = $pageNo; |
|
110 | - } |
|
111 | - |
|
112 | - public function getPageNo() |
|
113 | - { |
|
114 | - return $this->pageNo; |
|
115 | - } |
|
116 | - |
|
117 | - public function setPageSize($pageSize) |
|
118 | - { |
|
119 | - $this->pageSize = $pageSize; |
|
120 | - $this->apiParas["page_size"] = $pageSize; |
|
121 | - } |
|
122 | - |
|
123 | - public function getPageSize() |
|
124 | - { |
|
125 | - return $this->pageSize; |
|
126 | - } |
|
127 | - |
|
128 | - public function setPositionIndex($positionIndex) |
|
129 | - { |
|
130 | - $this->positionIndex = $positionIndex; |
|
131 | - $this->apiParas["position_index"] = $positionIndex; |
|
132 | - } |
|
133 | - |
|
134 | - public function getPositionIndex() |
|
135 | - { |
|
136 | - return $this->positionIndex; |
|
137 | - } |
|
138 | - |
|
139 | - public function setQueryType($queryType) |
|
140 | - { |
|
141 | - $this->queryType = $queryType; |
|
142 | - $this->apiParas["query_type"] = $queryType; |
|
143 | - } |
|
144 | - |
|
145 | - public function getQueryType() |
|
146 | - { |
|
147 | - return $this->queryType; |
|
148 | - } |
|
149 | - |
|
150 | - public function setStartTime($startTime) |
|
151 | - { |
|
152 | - $this->startTime = $startTime; |
|
153 | - $this->apiParas["start_time"] = $startTime; |
|
154 | - } |
|
155 | - |
|
156 | - public function getStartTime() |
|
157 | - { |
|
158 | - return $this->startTime; |
|
159 | - } |
|
160 | - |
|
161 | - public function setTkStatus($tkStatus) |
|
162 | - { |
|
163 | - $this->tkStatus = $tkStatus; |
|
164 | - $this->apiParas["tk_status"] = $tkStatus; |
|
165 | - } |
|
166 | - |
|
167 | - public function getTkStatus() |
|
168 | - { |
|
169 | - return $this->tkStatus; |
|
170 | - } |
|
171 | - |
|
172 | - public function getApiMethodName() |
|
173 | - { |
|
174 | - return "taobao.tbk.order.details.get"; |
|
175 | - } |
|
62 | + public function setEndTime($endTime) |
|
63 | + { |
|
64 | + $this->endTime = $endTime; |
|
65 | + $this->apiParas["end_time"] = $endTime; |
|
66 | + } |
|
67 | + |
|
68 | + public function getEndTime() |
|
69 | + { |
|
70 | + return $this->endTime; |
|
71 | + } |
|
72 | + |
|
73 | + public function setJumpType($jumpType) |
|
74 | + { |
|
75 | + $this->jumpType = $jumpType; |
|
76 | + $this->apiParas["jump_type"] = $jumpType; |
|
77 | + } |
|
78 | + |
|
79 | + public function getJumpType() |
|
80 | + { |
|
81 | + return $this->jumpType; |
|
82 | + } |
|
83 | + |
|
84 | + public function setMemberType($memberType) |
|
85 | + { |
|
86 | + $this->memberType = $memberType; |
|
87 | + $this->apiParas["member_type"] = $memberType; |
|
88 | + } |
|
89 | + |
|
90 | + public function getMemberType() |
|
91 | + { |
|
92 | + return $this->memberType; |
|
93 | + } |
|
94 | + |
|
95 | + public function setOrderScene($orderScene) |
|
96 | + { |
|
97 | + $this->orderScene = $orderScene; |
|
98 | + $this->apiParas["order_scene"] = $orderScene; |
|
99 | + } |
|
100 | + |
|
101 | + public function getOrderScene() |
|
102 | + { |
|
103 | + return $this->orderScene; |
|
104 | + } |
|
105 | + |
|
106 | + public function setPageNo($pageNo) |
|
107 | + { |
|
108 | + $this->pageNo = $pageNo; |
|
109 | + $this->apiParas["page_no"] = $pageNo; |
|
110 | + } |
|
111 | + |
|
112 | + public function getPageNo() |
|
113 | + { |
|
114 | + return $this->pageNo; |
|
115 | + } |
|
116 | + |
|
117 | + public function setPageSize($pageSize) |
|
118 | + { |
|
119 | + $this->pageSize = $pageSize; |
|
120 | + $this->apiParas["page_size"] = $pageSize; |
|
121 | + } |
|
122 | + |
|
123 | + public function getPageSize() |
|
124 | + { |
|
125 | + return $this->pageSize; |
|
126 | + } |
|
127 | + |
|
128 | + public function setPositionIndex($positionIndex) |
|
129 | + { |
|
130 | + $this->positionIndex = $positionIndex; |
|
131 | + $this->apiParas["position_index"] = $positionIndex; |
|
132 | + } |
|
133 | + |
|
134 | + public function getPositionIndex() |
|
135 | + { |
|
136 | + return $this->positionIndex; |
|
137 | + } |
|
138 | + |
|
139 | + public function setQueryType($queryType) |
|
140 | + { |
|
141 | + $this->queryType = $queryType; |
|
142 | + $this->apiParas["query_type"] = $queryType; |
|
143 | + } |
|
144 | + |
|
145 | + public function getQueryType() |
|
146 | + { |
|
147 | + return $this->queryType; |
|
148 | + } |
|
149 | + |
|
150 | + public function setStartTime($startTime) |
|
151 | + { |
|
152 | + $this->startTime = $startTime; |
|
153 | + $this->apiParas["start_time"] = $startTime; |
|
154 | + } |
|
155 | + |
|
156 | + public function getStartTime() |
|
157 | + { |
|
158 | + return $this->startTime; |
|
159 | + } |
|
160 | + |
|
161 | + public function setTkStatus($tkStatus) |
|
162 | + { |
|
163 | + $this->tkStatus = $tkStatus; |
|
164 | + $this->apiParas["tk_status"] = $tkStatus; |
|
165 | + } |
|
166 | + |
|
167 | + public function getTkStatus() |
|
168 | + { |
|
169 | + return $this->tkStatus; |
|
170 | + } |
|
171 | + |
|
172 | + public function getApiMethodName() |
|
173 | + { |
|
174 | + return "taobao.tbk.order.details.get"; |
|
175 | + } |
|
176 | 176 | |
177 | - public function getApiParas() |
|
178 | - { |
|
179 | - return $this->apiParas; |
|
180 | - } |
|
177 | + public function getApiParas() |
|
178 | + { |
|
179 | + return $this->apiParas; |
|
180 | + } |
|
181 | 181 | |
182 | - public function check() |
|
183 | - { |
|
182 | + public function check() |
|
183 | + { |
|
184 | 184 | |
185 | - RequestCheckUtil::checkNotNull($this->endTime,"endTime"); |
|
186 | - RequestCheckUtil::checkNotNull($this->startTime,"startTime"); |
|
187 | - } |
|
185 | + RequestCheckUtil::checkNotNull($this->endTime,"endTime"); |
|
186 | + RequestCheckUtil::checkNotNull($this->startTime,"startTime"); |
|
187 | + } |
|
188 | 188 | |
189 | - public function putOtherTextParam($key, $value) { |
|
190 | - $this->apiParas[$key] = $value; |
|
191 | - $this->$key = $value; |
|
192 | - } |
|
189 | + public function putOtherTextParam($key, $value) { |
|
190 | + $this->apiParas[$key] = $value; |
|
191 | + $this->$key = $value; |
|
192 | + } |
|
193 | 193 | } |
@@ -7,41 +7,41 @@ |
||
7 | 7 | */ |
8 | 8 | class TbkSpreadGetRequest |
9 | 9 | { |
10 | - /** |
|
11 | - * 请求列表,内部包含多个url |
|
12 | - **/ |
|
13 | - private $requests; |
|
10 | + /** |
|
11 | + * 请求列表,内部包含多个url |
|
12 | + **/ |
|
13 | + private $requests; |
|
14 | 14 | |
15 | - private $apiParas = array(); |
|
15 | + private $apiParas = array(); |
|
16 | 16 | |
17 | - public function setRequests($requests) |
|
18 | - { |
|
19 | - $this->requests = $requests; |
|
20 | - $this->apiParas["requests"] = $requests; |
|
21 | - } |
|
17 | + public function setRequests($requests) |
|
18 | + { |
|
19 | + $this->requests = $requests; |
|
20 | + $this->apiParas["requests"] = $requests; |
|
21 | + } |
|
22 | 22 | |
23 | - public function getRequests() |
|
24 | - { |
|
25 | - return $this->requests; |
|
26 | - } |
|
23 | + public function getRequests() |
|
24 | + { |
|
25 | + return $this->requests; |
|
26 | + } |
|
27 | 27 | |
28 | - public function getApiMethodName() |
|
29 | - { |
|
30 | - return "taobao.tbk.spread.get"; |
|
31 | - } |
|
28 | + public function getApiMethodName() |
|
29 | + { |
|
30 | + return "taobao.tbk.spread.get"; |
|
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 | - } |
|
41 | + } |
|
42 | 42 | |
43 | - public function putOtherTextParam($key, $value) { |
|
44 | - $this->apiParas[$key] = $value; |
|
45 | - $this->$key = $value; |
|
46 | - } |
|
43 | + public function putOtherTextParam($key, $value) { |
|
44 | + $this->apiParas[$key] = $value; |
|
45 | + $this->$key = $value; |
|
46 | + } |
|
47 | 47 | } |
@@ -7,41 +7,41 @@ |
||
7 | 7 | */ |
8 | 8 | class TbkDgPunishOrderGetRequest |
9 | 9 | { |
10 | - /** |
|
11 | - * 入参的对象 |
|
12 | - **/ |
|
13 | - private $afOrderOption; |
|
10 | + /** |
|
11 | + * 入参的对象 |
|
12 | + **/ |
|
13 | + private $afOrderOption; |
|
14 | 14 | |
15 | - private $apiParas = array(); |
|
15 | + private $apiParas = array(); |
|
16 | 16 | |
17 | - public function setAfOrderOption($afOrderOption) |
|
18 | - { |
|
19 | - $this->afOrderOption = $afOrderOption; |
|
20 | - $this->apiParas["af_order_option"] = $afOrderOption; |
|
21 | - } |
|
17 | + public function setAfOrderOption($afOrderOption) |
|
18 | + { |
|
19 | + $this->afOrderOption = $afOrderOption; |
|
20 | + $this->apiParas["af_order_option"] = $afOrderOption; |
|
21 | + } |
|
22 | 22 | |
23 | - public function getAfOrderOption() |
|
24 | - { |
|
25 | - return $this->afOrderOption; |
|
26 | - } |
|
23 | + public function getAfOrderOption() |
|
24 | + { |
|
25 | + return $this->afOrderOption; |
|
26 | + } |
|
27 | 27 | |
28 | - public function getApiMethodName() |
|
29 | - { |
|
30 | - return "taobao.tbk.dg.punish.order.get"; |
|
31 | - } |
|
28 | + public function getApiMethodName() |
|
29 | + { |
|
30 | + return "taobao.tbk.dg.punish.order.get"; |
|
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 | - } |
|
41 | + } |
|
42 | 42 | |
43 | - public function putOtherTextParam($key, $value) { |
|
44 | - $this->apiParas[$key] = $value; |
|
45 | - $this->$key = $value; |
|
46 | - } |
|
43 | + public function putOtherTextParam($key, $value) { |
|
44 | + $this->apiParas[$key] = $value; |
|
45 | + $this->$key = $value; |
|
46 | + } |
|
47 | 47 | } |
@@ -7,619 +7,619 @@ |
||
7 | 7 | */ |
8 | 8 | class TbkDgMaterialOptionalRequest |
9 | 9 | { |
10 | - /** |
|
11 | - * mm_xxx_xxx_12345678三段式的最后一段数字 |
|
12 | - **/ |
|
13 | - private $adzoneId; |
|
14 | - |
|
15 | - /** |
|
16 | - * 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 |
|
17 | - **/ |
|
18 | - private $cat; |
|
19 | - |
|
20 | - /** |
|
21 | - * 本地化业务入参-LBS信息-国标城市码,仅支持单个请求,请求饿了么卡券物料时,该字段必填。 (详细城市ID见:https://mo.m.taobao.com/page_2020010315120200508) |
|
22 | - **/ |
|
23 | - private $cityCode; |
|
24 | - |
|
25 | - /** |
|
26 | - * 智能匹配-设备号加密类型:MD5 |
|
27 | - **/ |
|
28 | - private $deviceEncrypt; |
|
29 | - |
|
30 | - /** |
|
31 | - * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID |
|
32 | - **/ |
|
33 | - private $deviceType; |
|
34 | - |
|
35 | - /** |
|
36 | - * 智能匹配-设备号加密后的值(MD5加密需32位小写) |
|
37 | - **/ |
|
38 | - private $deviceValue; |
|
39 | - |
|
40 | - /** |
|
41 | - * 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% |
|
42 | - **/ |
|
43 | - private $endKaTkRate; |
|
44 | - |
|
45 | - /** |
|
46 | - * 商品筛选-折扣价范围上限。单位:元 |
|
47 | - **/ |
|
48 | - private $endPrice; |
|
49 | - |
|
50 | - /** |
|
51 | - * 商品筛选-淘客佣金比率上限。如:1234表示12.34% |
|
52 | - **/ |
|
53 | - private $endTkRate; |
|
54 | - |
|
55 | - /** |
|
56 | - * 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 |
|
57 | - **/ |
|
58 | - private $hasCoupon; |
|
59 | - |
|
60 | - /** |
|
61 | - * 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 |
|
62 | - **/ |
|
63 | - private $includeGoodRate; |
|
64 | - |
|
65 | - /** |
|
66 | - * 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 |
|
67 | - **/ |
|
68 | - private $includePayRate30; |
|
69 | - |
|
70 | - /** |
|
71 | - * 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 |
|
72 | - **/ |
|
73 | - private $includeRfdRate; |
|
74 | - |
|
75 | - /** |
|
76 | - * ip参数影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 |
|
77 | - **/ |
|
78 | - private $ip; |
|
79 | - |
|
80 | - /** |
|
81 | - * 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 |
|
82 | - **/ |
|
83 | - private $isOverseas; |
|
84 | - |
|
85 | - /** |
|
86 | - * 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 |
|
87 | - **/ |
|
88 | - private $isTmall; |
|
89 | - |
|
90 | - /** |
|
91 | - * 商品筛选-所在地 |
|
92 | - **/ |
|
93 | - private $itemloc; |
|
94 | - |
|
95 | - /** |
|
96 | - * 本地化业务入参-LBS信息-纬度 |
|
97 | - **/ |
|
98 | - private $latitude; |
|
99 | - |
|
100 | - /** |
|
101 | - * 锁佣结束时间 |
|
102 | - **/ |
|
103 | - private $lockRateEndTime; |
|
104 | - |
|
105 | - /** |
|
106 | - * 锁佣开始时间 |
|
107 | - **/ |
|
108 | - private $lockRateStartTime; |
|
109 | - |
|
110 | - /** |
|
111 | - * 本地化业务入参-LBS信息-经度 |
|
112 | - **/ |
|
113 | - private $longitude; |
|
114 | - |
|
115 | - /** |
|
116 | - * 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 |
|
117 | - **/ |
|
118 | - private $materialId; |
|
119 | - |
|
120 | - /** |
|
121 | - * 商品筛选-是否包邮。true表示包邮,false或不设置表示不限 |
|
122 | - **/ |
|
123 | - private $needFreeShipment; |
|
124 | - |
|
125 | - /** |
|
126 | - * 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 |
|
127 | - **/ |
|
128 | - private $needPrepay; |
|
129 | - |
|
130 | - /** |
|
131 | - * 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 |
|
132 | - **/ |
|
133 | - private $npxLevel; |
|
134 | - |
|
135 | - /** |
|
136 | - * 第几页,默认:1 |
|
137 | - **/ |
|
138 | - private $pageNo; |
|
139 | - |
|
140 | - /** |
|
141 | - * 页大小,默认20,1~100 |
|
142 | - **/ |
|
143 | - private $pageSize; |
|
144 | - |
|
145 | - /** |
|
146 | - * 链接形式:1:PC,2:无线,默认:1 |
|
147 | - **/ |
|
148 | - private $platform; |
|
149 | - |
|
150 | - /** |
|
151 | - * 商品筛选-查询词 |
|
152 | - **/ |
|
153 | - private $q; |
|
154 | - |
|
155 | - /** |
|
156 | - * 渠道关系ID,仅适用于渠道推广场景 |
|
157 | - **/ |
|
158 | - private $relationId; |
|
159 | - |
|
160 | - /** |
|
161 | - * 商家id,仅支持饿了么卡券商家ID,支持批量请求1-100以内,多个商家ID使用英文逗号分隔 |
|
162 | - **/ |
|
163 | - private $sellerIds; |
|
164 | - |
|
165 | - /** |
|
166 | - * 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price) |
|
167 | - **/ |
|
168 | - private $sort; |
|
169 | - |
|
170 | - /** |
|
171 | - * 会员运营ID |
|
172 | - **/ |
|
173 | - private $specialId; |
|
174 | - |
|
175 | - /** |
|
176 | - * 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 |
|
177 | - **/ |
|
178 | - private $startDsr; |
|
179 | - |
|
180 | - /** |
|
181 | - * 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% |
|
182 | - **/ |
|
183 | - private $startKaTkRate; |
|
184 | - |
|
185 | - /** |
|
186 | - * 商品筛选-折扣价范围下限。单位:元 |
|
187 | - **/ |
|
188 | - private $startPrice; |
|
189 | - |
|
190 | - /** |
|
191 | - * 商品筛选-淘客佣金比率下限。如:1234表示12.34% |
|
192 | - **/ |
|
193 | - private $startTkRate; |
|
194 | - |
|
195 | - private $apiParas = array(); |
|
196 | - |
|
197 | - public function setAdzoneId($adzoneId) |
|
198 | - { |
|
199 | - $this->adzoneId = $adzoneId; |
|
200 | - $this->apiParas["adzone_id"] = $adzoneId; |
|
201 | - } |
|
202 | - |
|
203 | - public function getAdzoneId() |
|
204 | - { |
|
205 | - return $this->adzoneId; |
|
206 | - } |
|
207 | - |
|
208 | - public function setCat($cat) |
|
209 | - { |
|
210 | - $this->cat = $cat; |
|
211 | - $this->apiParas["cat"] = $cat; |
|
212 | - } |
|
213 | - |
|
214 | - public function getCat() |
|
215 | - { |
|
216 | - return $this->cat; |
|
217 | - } |
|
218 | - |
|
219 | - public function setCityCode($cityCode) |
|
220 | - { |
|
221 | - $this->cityCode = $cityCode; |
|
222 | - $this->apiParas["city_code"] = $cityCode; |
|
223 | - } |
|
224 | - |
|
225 | - public function getCityCode() |
|
226 | - { |
|
227 | - return $this->cityCode; |
|
228 | - } |
|
229 | - |
|
230 | - public function setDeviceEncrypt($deviceEncrypt) |
|
231 | - { |
|
232 | - $this->deviceEncrypt = $deviceEncrypt; |
|
233 | - $this->apiParas["device_encrypt"] = $deviceEncrypt; |
|
234 | - } |
|
235 | - |
|
236 | - public function getDeviceEncrypt() |
|
237 | - { |
|
238 | - return $this->deviceEncrypt; |
|
239 | - } |
|
240 | - |
|
241 | - public function setDeviceType($deviceType) |
|
242 | - { |
|
243 | - $this->deviceType = $deviceType; |
|
244 | - $this->apiParas["device_type"] = $deviceType; |
|
245 | - } |
|
246 | - |
|
247 | - public function getDeviceType() |
|
248 | - { |
|
249 | - return $this->deviceType; |
|
250 | - } |
|
251 | - |
|
252 | - public function setDeviceValue($deviceValue) |
|
253 | - { |
|
254 | - $this->deviceValue = $deviceValue; |
|
255 | - $this->apiParas["device_value"] = $deviceValue; |
|
256 | - } |
|
257 | - |
|
258 | - public function getDeviceValue() |
|
259 | - { |
|
260 | - return $this->deviceValue; |
|
261 | - } |
|
262 | - |
|
263 | - public function setEndKaTkRate($endKaTkRate) |
|
264 | - { |
|
265 | - $this->endKaTkRate = $endKaTkRate; |
|
266 | - $this->apiParas["end_ka_tk_rate"] = $endKaTkRate; |
|
267 | - } |
|
268 | - |
|
269 | - public function getEndKaTkRate() |
|
270 | - { |
|
271 | - return $this->endKaTkRate; |
|
272 | - } |
|
273 | - |
|
274 | - public function setEndPrice($endPrice) |
|
275 | - { |
|
276 | - $this->endPrice = $endPrice; |
|
277 | - $this->apiParas["end_price"] = $endPrice; |
|
278 | - } |
|
279 | - |
|
280 | - public function getEndPrice() |
|
281 | - { |
|
282 | - return $this->endPrice; |
|
283 | - } |
|
284 | - |
|
285 | - public function setEndTkRate($endTkRate) |
|
286 | - { |
|
287 | - $this->endTkRate = $endTkRate; |
|
288 | - $this->apiParas["end_tk_rate"] = $endTkRate; |
|
289 | - } |
|
290 | - |
|
291 | - public function getEndTkRate() |
|
292 | - { |
|
293 | - return $this->endTkRate; |
|
294 | - } |
|
295 | - |
|
296 | - public function setHasCoupon($hasCoupon) |
|
297 | - { |
|
298 | - $this->hasCoupon = $hasCoupon; |
|
299 | - $this->apiParas["has_coupon"] = $hasCoupon; |
|
300 | - } |
|
301 | - |
|
302 | - public function getHasCoupon() |
|
303 | - { |
|
304 | - return $this->hasCoupon; |
|
305 | - } |
|
306 | - |
|
307 | - public function setIncludeGoodRate($includeGoodRate) |
|
308 | - { |
|
309 | - $this->includeGoodRate = $includeGoodRate; |
|
310 | - $this->apiParas["include_good_rate"] = $includeGoodRate; |
|
311 | - } |
|
312 | - |
|
313 | - public function getIncludeGoodRate() |
|
314 | - { |
|
315 | - return $this->includeGoodRate; |
|
316 | - } |
|
317 | - |
|
318 | - public function setIncludePayRate30($includePayRate30) |
|
319 | - { |
|
320 | - $this->includePayRate30 = $includePayRate30; |
|
321 | - $this->apiParas["include_pay_rate_30"] = $includePayRate30; |
|
322 | - } |
|
323 | - |
|
324 | - public function getIncludePayRate30() |
|
325 | - { |
|
326 | - return $this->includePayRate30; |
|
327 | - } |
|
328 | - |
|
329 | - public function setIncludeRfdRate($includeRfdRate) |
|
330 | - { |
|
331 | - $this->includeRfdRate = $includeRfdRate; |
|
332 | - $this->apiParas["include_rfd_rate"] = $includeRfdRate; |
|
333 | - } |
|
334 | - |
|
335 | - public function getIncludeRfdRate() |
|
336 | - { |
|
337 | - return $this->includeRfdRate; |
|
338 | - } |
|
339 | - |
|
340 | - public function setIp($ip) |
|
341 | - { |
|
342 | - $this->ip = $ip; |
|
343 | - $this->apiParas["ip"] = $ip; |
|
344 | - } |
|
345 | - |
|
346 | - public function getIp() |
|
347 | - { |
|
348 | - return $this->ip; |
|
349 | - } |
|
350 | - |
|
351 | - public function setIsOverseas($isOverseas) |
|
352 | - { |
|
353 | - $this->isOverseas = $isOverseas; |
|
354 | - $this->apiParas["is_overseas"] = $isOverseas; |
|
355 | - } |
|
356 | - |
|
357 | - public function getIsOverseas() |
|
358 | - { |
|
359 | - return $this->isOverseas; |
|
360 | - } |
|
361 | - |
|
362 | - public function setIsTmall($isTmall) |
|
363 | - { |
|
364 | - $this->isTmall = $isTmall; |
|
365 | - $this->apiParas["is_tmall"] = $isTmall; |
|
366 | - } |
|
367 | - |
|
368 | - public function getIsTmall() |
|
369 | - { |
|
370 | - return $this->isTmall; |
|
371 | - } |
|
372 | - |
|
373 | - public function setItemloc($itemloc) |
|
374 | - { |
|
375 | - $this->itemloc = $itemloc; |
|
376 | - $this->apiParas["itemloc"] = $itemloc; |
|
377 | - } |
|
378 | - |
|
379 | - public function getItemloc() |
|
380 | - { |
|
381 | - return $this->itemloc; |
|
382 | - } |
|
383 | - |
|
384 | - public function setLatitude($latitude) |
|
385 | - { |
|
386 | - $this->latitude = $latitude; |
|
387 | - $this->apiParas["latitude"] = $latitude; |
|
388 | - } |
|
389 | - |
|
390 | - public function getLatitude() |
|
391 | - { |
|
392 | - return $this->latitude; |
|
393 | - } |
|
394 | - |
|
395 | - public function setLockRateEndTime($lockRateEndTime) |
|
396 | - { |
|
397 | - $this->lockRateEndTime = $lockRateEndTime; |
|
398 | - $this->apiParas["lock_rate_end_time"] = $lockRateEndTime; |
|
399 | - } |
|
400 | - |
|
401 | - public function getLockRateEndTime() |
|
402 | - { |
|
403 | - return $this->lockRateEndTime; |
|
404 | - } |
|
405 | - |
|
406 | - public function setLockRateStartTime($lockRateStartTime) |
|
407 | - { |
|
408 | - $this->lockRateStartTime = $lockRateStartTime; |
|
409 | - $this->apiParas["lock_rate_start_time"] = $lockRateStartTime; |
|
410 | - } |
|
411 | - |
|
412 | - public function getLockRateStartTime() |
|
413 | - { |
|
414 | - return $this->lockRateStartTime; |
|
415 | - } |
|
416 | - |
|
417 | - public function setLongitude($longitude) |
|
418 | - { |
|
419 | - $this->longitude = $longitude; |
|
420 | - $this->apiParas["longitude"] = $longitude; |
|
421 | - } |
|
422 | - |
|
423 | - public function getLongitude() |
|
424 | - { |
|
425 | - return $this->longitude; |
|
426 | - } |
|
427 | - |
|
428 | - public function setMaterialId($materialId) |
|
429 | - { |
|
430 | - $this->materialId = $materialId; |
|
431 | - $this->apiParas["material_id"] = $materialId; |
|
432 | - } |
|
433 | - |
|
434 | - public function getMaterialId() |
|
435 | - { |
|
436 | - return $this->materialId; |
|
437 | - } |
|
438 | - |
|
439 | - public function setNeedFreeShipment($needFreeShipment) |
|
440 | - { |
|
441 | - $this->needFreeShipment = $needFreeShipment; |
|
442 | - $this->apiParas["need_free_shipment"] = $needFreeShipment; |
|
443 | - } |
|
444 | - |
|
445 | - public function getNeedFreeShipment() |
|
446 | - { |
|
447 | - return $this->needFreeShipment; |
|
448 | - } |
|
449 | - |
|
450 | - public function setNeedPrepay($needPrepay) |
|
451 | - { |
|
452 | - $this->needPrepay = $needPrepay; |
|
453 | - $this->apiParas["need_prepay"] = $needPrepay; |
|
454 | - } |
|
455 | - |
|
456 | - public function getNeedPrepay() |
|
457 | - { |
|
458 | - return $this->needPrepay; |
|
459 | - } |
|
460 | - |
|
461 | - public function setNpxLevel($npxLevel) |
|
462 | - { |
|
463 | - $this->npxLevel = $npxLevel; |
|
464 | - $this->apiParas["npx_level"] = $npxLevel; |
|
465 | - } |
|
466 | - |
|
467 | - public function getNpxLevel() |
|
468 | - { |
|
469 | - return $this->npxLevel; |
|
470 | - } |
|
471 | - |
|
472 | - public function setPageNo($pageNo) |
|
473 | - { |
|
474 | - $this->pageNo = $pageNo; |
|
475 | - $this->apiParas["page_no"] = $pageNo; |
|
476 | - } |
|
477 | - |
|
478 | - public function getPageNo() |
|
479 | - { |
|
480 | - return $this->pageNo; |
|
481 | - } |
|
482 | - |
|
483 | - public function setPageSize($pageSize) |
|
484 | - { |
|
485 | - $this->pageSize = $pageSize; |
|
486 | - $this->apiParas["page_size"] = $pageSize; |
|
487 | - } |
|
488 | - |
|
489 | - public function getPageSize() |
|
490 | - { |
|
491 | - return $this->pageSize; |
|
492 | - } |
|
493 | - |
|
494 | - public function setPlatform($platform) |
|
495 | - { |
|
496 | - $this->platform = $platform; |
|
497 | - $this->apiParas["platform"] = $platform; |
|
498 | - } |
|
499 | - |
|
500 | - public function getPlatform() |
|
501 | - { |
|
502 | - return $this->platform; |
|
503 | - } |
|
504 | - |
|
505 | - public function setQ($q) |
|
506 | - { |
|
507 | - $this->q = $q; |
|
508 | - $this->apiParas["q"] = $q; |
|
509 | - } |
|
510 | - |
|
511 | - public function getQ() |
|
512 | - { |
|
513 | - return $this->q; |
|
514 | - } |
|
515 | - |
|
516 | - public function setRelationId($relationId) |
|
517 | - { |
|
518 | - $this->relationId = $relationId; |
|
519 | - $this->apiParas["relation_id"] = $relationId; |
|
520 | - } |
|
521 | - |
|
522 | - public function getRelationId() |
|
523 | - { |
|
524 | - return $this->relationId; |
|
525 | - } |
|
526 | - |
|
527 | - public function setSellerIds($sellerIds) |
|
528 | - { |
|
529 | - $this->sellerIds = $sellerIds; |
|
530 | - $this->apiParas["seller_ids"] = $sellerIds; |
|
531 | - } |
|
532 | - |
|
533 | - public function getSellerIds() |
|
534 | - { |
|
535 | - return $this->sellerIds; |
|
536 | - } |
|
537 | - |
|
538 | - public function setSort($sort) |
|
539 | - { |
|
540 | - $this->sort = $sort; |
|
541 | - $this->apiParas["sort"] = $sort; |
|
542 | - } |
|
543 | - |
|
544 | - public function getSort() |
|
545 | - { |
|
546 | - return $this->sort; |
|
547 | - } |
|
548 | - |
|
549 | - public function setSpecialId($specialId) |
|
550 | - { |
|
551 | - $this->specialId = $specialId; |
|
552 | - $this->apiParas["special_id"] = $specialId; |
|
553 | - } |
|
554 | - |
|
555 | - public function getSpecialId() |
|
556 | - { |
|
557 | - return $this->specialId; |
|
558 | - } |
|
559 | - |
|
560 | - public function setStartDsr($startDsr) |
|
561 | - { |
|
562 | - $this->startDsr = $startDsr; |
|
563 | - $this->apiParas["start_dsr"] = $startDsr; |
|
564 | - } |
|
565 | - |
|
566 | - public function getStartDsr() |
|
567 | - { |
|
568 | - return $this->startDsr; |
|
569 | - } |
|
570 | - |
|
571 | - public function setStartKaTkRate($startKaTkRate) |
|
572 | - { |
|
573 | - $this->startKaTkRate = $startKaTkRate; |
|
574 | - $this->apiParas["start_ka_tk_rate"] = $startKaTkRate; |
|
575 | - } |
|
576 | - |
|
577 | - public function getStartKaTkRate() |
|
578 | - { |
|
579 | - return $this->startKaTkRate; |
|
580 | - } |
|
581 | - |
|
582 | - public function setStartPrice($startPrice) |
|
583 | - { |
|
584 | - $this->startPrice = $startPrice; |
|
585 | - $this->apiParas["start_price"] = $startPrice; |
|
586 | - } |
|
587 | - |
|
588 | - public function getStartPrice() |
|
589 | - { |
|
590 | - return $this->startPrice; |
|
591 | - } |
|
592 | - |
|
593 | - public function setStartTkRate($startTkRate) |
|
594 | - { |
|
595 | - $this->startTkRate = $startTkRate; |
|
596 | - $this->apiParas["start_tk_rate"] = $startTkRate; |
|
597 | - } |
|
598 | - |
|
599 | - public function getStartTkRate() |
|
600 | - { |
|
601 | - return $this->startTkRate; |
|
602 | - } |
|
603 | - |
|
604 | - public function getApiMethodName() |
|
605 | - { |
|
606 | - return "taobao.tbk.dg.material.optional"; |
|
607 | - } |
|
608 | - |
|
609 | - public function getApiParas() |
|
610 | - { |
|
611 | - return $this->apiParas; |
|
612 | - } |
|
613 | - |
|
614 | - public function check() |
|
615 | - { |
|
10 | + /** |
|
11 | + * mm_xxx_xxx_12345678三段式的最后一段数字 |
|
12 | + **/ |
|
13 | + private $adzoneId; |
|
14 | + |
|
15 | + /** |
|
16 | + * 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 |
|
17 | + **/ |
|
18 | + private $cat; |
|
19 | + |
|
20 | + /** |
|
21 | + * 本地化业务入参-LBS信息-国标城市码,仅支持单个请求,请求饿了么卡券物料时,该字段必填。 (详细城市ID见:https://mo.m.taobao.com/page_2020010315120200508) |
|
22 | + **/ |
|
23 | + private $cityCode; |
|
24 | + |
|
25 | + /** |
|
26 | + * 智能匹配-设备号加密类型:MD5 |
|
27 | + **/ |
|
28 | + private $deviceEncrypt; |
|
29 | + |
|
30 | + /** |
|
31 | + * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID |
|
32 | + **/ |
|
33 | + private $deviceType; |
|
34 | + |
|
35 | + /** |
|
36 | + * 智能匹配-设备号加密后的值(MD5加密需32位小写) |
|
37 | + **/ |
|
38 | + private $deviceValue; |
|
39 | + |
|
40 | + /** |
|
41 | + * 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% |
|
42 | + **/ |
|
43 | + private $endKaTkRate; |
|
44 | + |
|
45 | + /** |
|
46 | + * 商品筛选-折扣价范围上限。单位:元 |
|
47 | + **/ |
|
48 | + private $endPrice; |
|
49 | + |
|
50 | + /** |
|
51 | + * 商品筛选-淘客佣金比率上限。如:1234表示12.34% |
|
52 | + **/ |
|
53 | + private $endTkRate; |
|
54 | + |
|
55 | + /** |
|
56 | + * 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 |
|
57 | + **/ |
|
58 | + private $hasCoupon; |
|
59 | + |
|
60 | + /** |
|
61 | + * 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 |
|
62 | + **/ |
|
63 | + private $includeGoodRate; |
|
64 | + |
|
65 | + /** |
|
66 | + * 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 |
|
67 | + **/ |
|
68 | + private $includePayRate30; |
|
69 | + |
|
70 | + /** |
|
71 | + * 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 |
|
72 | + **/ |
|
73 | + private $includeRfdRate; |
|
74 | + |
|
75 | + /** |
|
76 | + * ip参数影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 |
|
77 | + **/ |
|
78 | + private $ip; |
|
79 | + |
|
80 | + /** |
|
81 | + * 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 |
|
82 | + **/ |
|
83 | + private $isOverseas; |
|
84 | + |
|
85 | + /** |
|
86 | + * 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 |
|
87 | + **/ |
|
88 | + private $isTmall; |
|
89 | + |
|
90 | + /** |
|
91 | + * 商品筛选-所在地 |
|
92 | + **/ |
|
93 | + private $itemloc; |
|
94 | + |
|
95 | + /** |
|
96 | + * 本地化业务入参-LBS信息-纬度 |
|
97 | + **/ |
|
98 | + private $latitude; |
|
99 | + |
|
100 | + /** |
|
101 | + * 锁佣结束时间 |
|
102 | + **/ |
|
103 | + private $lockRateEndTime; |
|
104 | + |
|
105 | + /** |
|
106 | + * 锁佣开始时间 |
|
107 | + **/ |
|
108 | + private $lockRateStartTime; |
|
109 | + |
|
110 | + /** |
|
111 | + * 本地化业务入参-LBS信息-经度 |
|
112 | + **/ |
|
113 | + private $longitude; |
|
114 | + |
|
115 | + /** |
|
116 | + * 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 |
|
117 | + **/ |
|
118 | + private $materialId; |
|
119 | + |
|
120 | + /** |
|
121 | + * 商品筛选-是否包邮。true表示包邮,false或不设置表示不限 |
|
122 | + **/ |
|
123 | + private $needFreeShipment; |
|
124 | + |
|
125 | + /** |
|
126 | + * 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 |
|
127 | + **/ |
|
128 | + private $needPrepay; |
|
129 | + |
|
130 | + /** |
|
131 | + * 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 |
|
132 | + **/ |
|
133 | + private $npxLevel; |
|
134 | + |
|
135 | + /** |
|
136 | + * 第几页,默认:1 |
|
137 | + **/ |
|
138 | + private $pageNo; |
|
139 | + |
|
140 | + /** |
|
141 | + * 页大小,默认20,1~100 |
|
142 | + **/ |
|
143 | + private $pageSize; |
|
144 | + |
|
145 | + /** |
|
146 | + * 链接形式:1:PC,2:无线,默认:1 |
|
147 | + **/ |
|
148 | + private $platform; |
|
149 | + |
|
150 | + /** |
|
151 | + * 商品筛选-查询词 |
|
152 | + **/ |
|
153 | + private $q; |
|
154 | + |
|
155 | + /** |
|
156 | + * 渠道关系ID,仅适用于渠道推广场景 |
|
157 | + **/ |
|
158 | + private $relationId; |
|
159 | + |
|
160 | + /** |
|
161 | + * 商家id,仅支持饿了么卡券商家ID,支持批量请求1-100以内,多个商家ID使用英文逗号分隔 |
|
162 | + **/ |
|
163 | + private $sellerIds; |
|
164 | + |
|
165 | + /** |
|
166 | + * 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price) |
|
167 | + **/ |
|
168 | + private $sort; |
|
169 | + |
|
170 | + /** |
|
171 | + * 会员运营ID |
|
172 | + **/ |
|
173 | + private $specialId; |
|
174 | + |
|
175 | + /** |
|
176 | + * 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 |
|
177 | + **/ |
|
178 | + private $startDsr; |
|
179 | + |
|
180 | + /** |
|
181 | + * 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% |
|
182 | + **/ |
|
183 | + private $startKaTkRate; |
|
184 | + |
|
185 | + /** |
|
186 | + * 商品筛选-折扣价范围下限。单位:元 |
|
187 | + **/ |
|
188 | + private $startPrice; |
|
189 | + |
|
190 | + /** |
|
191 | + * 商品筛选-淘客佣金比率下限。如:1234表示12.34% |
|
192 | + **/ |
|
193 | + private $startTkRate; |
|
194 | + |
|
195 | + private $apiParas = array(); |
|
196 | + |
|
197 | + public function setAdzoneId($adzoneId) |
|
198 | + { |
|
199 | + $this->adzoneId = $adzoneId; |
|
200 | + $this->apiParas["adzone_id"] = $adzoneId; |
|
201 | + } |
|
202 | + |
|
203 | + public function getAdzoneId() |
|
204 | + { |
|
205 | + return $this->adzoneId; |
|
206 | + } |
|
207 | + |
|
208 | + public function setCat($cat) |
|
209 | + { |
|
210 | + $this->cat = $cat; |
|
211 | + $this->apiParas["cat"] = $cat; |
|
212 | + } |
|
213 | + |
|
214 | + public function getCat() |
|
215 | + { |
|
216 | + return $this->cat; |
|
217 | + } |
|
218 | + |
|
219 | + public function setCityCode($cityCode) |
|
220 | + { |
|
221 | + $this->cityCode = $cityCode; |
|
222 | + $this->apiParas["city_code"] = $cityCode; |
|
223 | + } |
|
224 | + |
|
225 | + public function getCityCode() |
|
226 | + { |
|
227 | + return $this->cityCode; |
|
228 | + } |
|
229 | + |
|
230 | + public function setDeviceEncrypt($deviceEncrypt) |
|
231 | + { |
|
232 | + $this->deviceEncrypt = $deviceEncrypt; |
|
233 | + $this->apiParas["device_encrypt"] = $deviceEncrypt; |
|
234 | + } |
|
235 | + |
|
236 | + public function getDeviceEncrypt() |
|
237 | + { |
|
238 | + return $this->deviceEncrypt; |
|
239 | + } |
|
240 | + |
|
241 | + public function setDeviceType($deviceType) |
|
242 | + { |
|
243 | + $this->deviceType = $deviceType; |
|
244 | + $this->apiParas["device_type"] = $deviceType; |
|
245 | + } |
|
246 | + |
|
247 | + public function getDeviceType() |
|
248 | + { |
|
249 | + return $this->deviceType; |
|
250 | + } |
|
251 | + |
|
252 | + public function setDeviceValue($deviceValue) |
|
253 | + { |
|
254 | + $this->deviceValue = $deviceValue; |
|
255 | + $this->apiParas["device_value"] = $deviceValue; |
|
256 | + } |
|
257 | + |
|
258 | + public function getDeviceValue() |
|
259 | + { |
|
260 | + return $this->deviceValue; |
|
261 | + } |
|
262 | + |
|
263 | + public function setEndKaTkRate($endKaTkRate) |
|
264 | + { |
|
265 | + $this->endKaTkRate = $endKaTkRate; |
|
266 | + $this->apiParas["end_ka_tk_rate"] = $endKaTkRate; |
|
267 | + } |
|
268 | + |
|
269 | + public function getEndKaTkRate() |
|
270 | + { |
|
271 | + return $this->endKaTkRate; |
|
272 | + } |
|
273 | + |
|
274 | + public function setEndPrice($endPrice) |
|
275 | + { |
|
276 | + $this->endPrice = $endPrice; |
|
277 | + $this->apiParas["end_price"] = $endPrice; |
|
278 | + } |
|
279 | + |
|
280 | + public function getEndPrice() |
|
281 | + { |
|
282 | + return $this->endPrice; |
|
283 | + } |
|
284 | + |
|
285 | + public function setEndTkRate($endTkRate) |
|
286 | + { |
|
287 | + $this->endTkRate = $endTkRate; |
|
288 | + $this->apiParas["end_tk_rate"] = $endTkRate; |
|
289 | + } |
|
290 | + |
|
291 | + public function getEndTkRate() |
|
292 | + { |
|
293 | + return $this->endTkRate; |
|
294 | + } |
|
295 | + |
|
296 | + public function setHasCoupon($hasCoupon) |
|
297 | + { |
|
298 | + $this->hasCoupon = $hasCoupon; |
|
299 | + $this->apiParas["has_coupon"] = $hasCoupon; |
|
300 | + } |
|
301 | + |
|
302 | + public function getHasCoupon() |
|
303 | + { |
|
304 | + return $this->hasCoupon; |
|
305 | + } |
|
306 | + |
|
307 | + public function setIncludeGoodRate($includeGoodRate) |
|
308 | + { |
|
309 | + $this->includeGoodRate = $includeGoodRate; |
|
310 | + $this->apiParas["include_good_rate"] = $includeGoodRate; |
|
311 | + } |
|
312 | + |
|
313 | + public function getIncludeGoodRate() |
|
314 | + { |
|
315 | + return $this->includeGoodRate; |
|
316 | + } |
|
317 | + |
|
318 | + public function setIncludePayRate30($includePayRate30) |
|
319 | + { |
|
320 | + $this->includePayRate30 = $includePayRate30; |
|
321 | + $this->apiParas["include_pay_rate_30"] = $includePayRate30; |
|
322 | + } |
|
323 | + |
|
324 | + public function getIncludePayRate30() |
|
325 | + { |
|
326 | + return $this->includePayRate30; |
|
327 | + } |
|
328 | + |
|
329 | + public function setIncludeRfdRate($includeRfdRate) |
|
330 | + { |
|
331 | + $this->includeRfdRate = $includeRfdRate; |
|
332 | + $this->apiParas["include_rfd_rate"] = $includeRfdRate; |
|
333 | + } |
|
334 | + |
|
335 | + public function getIncludeRfdRate() |
|
336 | + { |
|
337 | + return $this->includeRfdRate; |
|
338 | + } |
|
339 | + |
|
340 | + public function setIp($ip) |
|
341 | + { |
|
342 | + $this->ip = $ip; |
|
343 | + $this->apiParas["ip"] = $ip; |
|
344 | + } |
|
345 | + |
|
346 | + public function getIp() |
|
347 | + { |
|
348 | + return $this->ip; |
|
349 | + } |
|
350 | + |
|
351 | + public function setIsOverseas($isOverseas) |
|
352 | + { |
|
353 | + $this->isOverseas = $isOverseas; |
|
354 | + $this->apiParas["is_overseas"] = $isOverseas; |
|
355 | + } |
|
356 | + |
|
357 | + public function getIsOverseas() |
|
358 | + { |
|
359 | + return $this->isOverseas; |
|
360 | + } |
|
361 | + |
|
362 | + public function setIsTmall($isTmall) |
|
363 | + { |
|
364 | + $this->isTmall = $isTmall; |
|
365 | + $this->apiParas["is_tmall"] = $isTmall; |
|
366 | + } |
|
367 | + |
|
368 | + public function getIsTmall() |
|
369 | + { |
|
370 | + return $this->isTmall; |
|
371 | + } |
|
372 | + |
|
373 | + public function setItemloc($itemloc) |
|
374 | + { |
|
375 | + $this->itemloc = $itemloc; |
|
376 | + $this->apiParas["itemloc"] = $itemloc; |
|
377 | + } |
|
378 | + |
|
379 | + public function getItemloc() |
|
380 | + { |
|
381 | + return $this->itemloc; |
|
382 | + } |
|
383 | + |
|
384 | + public function setLatitude($latitude) |
|
385 | + { |
|
386 | + $this->latitude = $latitude; |
|
387 | + $this->apiParas["latitude"] = $latitude; |
|
388 | + } |
|
389 | + |
|
390 | + public function getLatitude() |
|
391 | + { |
|
392 | + return $this->latitude; |
|
393 | + } |
|
394 | + |
|
395 | + public function setLockRateEndTime($lockRateEndTime) |
|
396 | + { |
|
397 | + $this->lockRateEndTime = $lockRateEndTime; |
|
398 | + $this->apiParas["lock_rate_end_time"] = $lockRateEndTime; |
|
399 | + } |
|
400 | + |
|
401 | + public function getLockRateEndTime() |
|
402 | + { |
|
403 | + return $this->lockRateEndTime; |
|
404 | + } |
|
405 | + |
|
406 | + public function setLockRateStartTime($lockRateStartTime) |
|
407 | + { |
|
408 | + $this->lockRateStartTime = $lockRateStartTime; |
|
409 | + $this->apiParas["lock_rate_start_time"] = $lockRateStartTime; |
|
410 | + } |
|
411 | + |
|
412 | + public function getLockRateStartTime() |
|
413 | + { |
|
414 | + return $this->lockRateStartTime; |
|
415 | + } |
|
416 | + |
|
417 | + public function setLongitude($longitude) |
|
418 | + { |
|
419 | + $this->longitude = $longitude; |
|
420 | + $this->apiParas["longitude"] = $longitude; |
|
421 | + } |
|
422 | + |
|
423 | + public function getLongitude() |
|
424 | + { |
|
425 | + return $this->longitude; |
|
426 | + } |
|
427 | + |
|
428 | + public function setMaterialId($materialId) |
|
429 | + { |
|
430 | + $this->materialId = $materialId; |
|
431 | + $this->apiParas["material_id"] = $materialId; |
|
432 | + } |
|
433 | + |
|
434 | + public function getMaterialId() |
|
435 | + { |
|
436 | + return $this->materialId; |
|
437 | + } |
|
438 | + |
|
439 | + public function setNeedFreeShipment($needFreeShipment) |
|
440 | + { |
|
441 | + $this->needFreeShipment = $needFreeShipment; |
|
442 | + $this->apiParas["need_free_shipment"] = $needFreeShipment; |
|
443 | + } |
|
444 | + |
|
445 | + public function getNeedFreeShipment() |
|
446 | + { |
|
447 | + return $this->needFreeShipment; |
|
448 | + } |
|
449 | + |
|
450 | + public function setNeedPrepay($needPrepay) |
|
451 | + { |
|
452 | + $this->needPrepay = $needPrepay; |
|
453 | + $this->apiParas["need_prepay"] = $needPrepay; |
|
454 | + } |
|
455 | + |
|
456 | + public function getNeedPrepay() |
|
457 | + { |
|
458 | + return $this->needPrepay; |
|
459 | + } |
|
460 | + |
|
461 | + public function setNpxLevel($npxLevel) |
|
462 | + { |
|
463 | + $this->npxLevel = $npxLevel; |
|
464 | + $this->apiParas["npx_level"] = $npxLevel; |
|
465 | + } |
|
466 | + |
|
467 | + public function getNpxLevel() |
|
468 | + { |
|
469 | + return $this->npxLevel; |
|
470 | + } |
|
471 | + |
|
472 | + public function setPageNo($pageNo) |
|
473 | + { |
|
474 | + $this->pageNo = $pageNo; |
|
475 | + $this->apiParas["page_no"] = $pageNo; |
|
476 | + } |
|
477 | + |
|
478 | + public function getPageNo() |
|
479 | + { |
|
480 | + return $this->pageNo; |
|
481 | + } |
|
482 | + |
|
483 | + public function setPageSize($pageSize) |
|
484 | + { |
|
485 | + $this->pageSize = $pageSize; |
|
486 | + $this->apiParas["page_size"] = $pageSize; |
|
487 | + } |
|
488 | + |
|
489 | + public function getPageSize() |
|
490 | + { |
|
491 | + return $this->pageSize; |
|
492 | + } |
|
493 | + |
|
494 | + public function setPlatform($platform) |
|
495 | + { |
|
496 | + $this->platform = $platform; |
|
497 | + $this->apiParas["platform"] = $platform; |
|
498 | + } |
|
499 | + |
|
500 | + public function getPlatform() |
|
501 | + { |
|
502 | + return $this->platform; |
|
503 | + } |
|
504 | + |
|
505 | + public function setQ($q) |
|
506 | + { |
|
507 | + $this->q = $q; |
|
508 | + $this->apiParas["q"] = $q; |
|
509 | + } |
|
510 | + |
|
511 | + public function getQ() |
|
512 | + { |
|
513 | + return $this->q; |
|
514 | + } |
|
515 | + |
|
516 | + public function setRelationId($relationId) |
|
517 | + { |
|
518 | + $this->relationId = $relationId; |
|
519 | + $this->apiParas["relation_id"] = $relationId; |
|
520 | + } |
|
521 | + |
|
522 | + public function getRelationId() |
|
523 | + { |
|
524 | + return $this->relationId; |
|
525 | + } |
|
526 | + |
|
527 | + public function setSellerIds($sellerIds) |
|
528 | + { |
|
529 | + $this->sellerIds = $sellerIds; |
|
530 | + $this->apiParas["seller_ids"] = $sellerIds; |
|
531 | + } |
|
532 | + |
|
533 | + public function getSellerIds() |
|
534 | + { |
|
535 | + return $this->sellerIds; |
|
536 | + } |
|
537 | + |
|
538 | + public function setSort($sort) |
|
539 | + { |
|
540 | + $this->sort = $sort; |
|
541 | + $this->apiParas["sort"] = $sort; |
|
542 | + } |
|
543 | + |
|
544 | + public function getSort() |
|
545 | + { |
|
546 | + return $this->sort; |
|
547 | + } |
|
548 | + |
|
549 | + public function setSpecialId($specialId) |
|
550 | + { |
|
551 | + $this->specialId = $specialId; |
|
552 | + $this->apiParas["special_id"] = $specialId; |
|
553 | + } |
|
554 | + |
|
555 | + public function getSpecialId() |
|
556 | + { |
|
557 | + return $this->specialId; |
|
558 | + } |
|
559 | + |
|
560 | + public function setStartDsr($startDsr) |
|
561 | + { |
|
562 | + $this->startDsr = $startDsr; |
|
563 | + $this->apiParas["start_dsr"] = $startDsr; |
|
564 | + } |
|
565 | + |
|
566 | + public function getStartDsr() |
|
567 | + { |
|
568 | + return $this->startDsr; |
|
569 | + } |
|
570 | + |
|
571 | + public function setStartKaTkRate($startKaTkRate) |
|
572 | + { |
|
573 | + $this->startKaTkRate = $startKaTkRate; |
|
574 | + $this->apiParas["start_ka_tk_rate"] = $startKaTkRate; |
|
575 | + } |
|
576 | + |
|
577 | + public function getStartKaTkRate() |
|
578 | + { |
|
579 | + return $this->startKaTkRate; |
|
580 | + } |
|
581 | + |
|
582 | + public function setStartPrice($startPrice) |
|
583 | + { |
|
584 | + $this->startPrice = $startPrice; |
|
585 | + $this->apiParas["start_price"] = $startPrice; |
|
586 | + } |
|
587 | + |
|
588 | + public function getStartPrice() |
|
589 | + { |
|
590 | + return $this->startPrice; |
|
591 | + } |
|
592 | + |
|
593 | + public function setStartTkRate($startTkRate) |
|
594 | + { |
|
595 | + $this->startTkRate = $startTkRate; |
|
596 | + $this->apiParas["start_tk_rate"] = $startTkRate; |
|
597 | + } |
|
598 | + |
|
599 | + public function getStartTkRate() |
|
600 | + { |
|
601 | + return $this->startTkRate; |
|
602 | + } |
|
603 | + |
|
604 | + public function getApiMethodName() |
|
605 | + { |
|
606 | + return "taobao.tbk.dg.material.optional"; |
|
607 | + } |
|
608 | + |
|
609 | + public function getApiParas() |
|
610 | + { |
|
611 | + return $this->apiParas; |
|
612 | + } |
|
613 | + |
|
614 | + public function check() |
|
615 | + { |
|
616 | 616 | |
617 | - RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); |
|
618 | - RequestCheckUtil::checkMaxValue($this->startDsr,50000,"startDsr"); |
|
619 | - } |
|
620 | - |
|
621 | - public function putOtherTextParam($key, $value) { |
|
622 | - $this->apiParas[$key] = $value; |
|
623 | - $this->$key = $value; |
|
624 | - } |
|
617 | + RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); |
|
618 | + RequestCheckUtil::checkMaxValue($this->startDsr,50000,"startDsr"); |
|
619 | + } |
|
620 | + |
|
621 | + public function putOtherTextParam($key, $value) { |
|
622 | + $this->apiParas[$key] = $value; |
|
623 | + $this->$key = $value; |
|
624 | + } |
|
625 | 625 | } |