Passed
Push — v6 ( 0ec70f...32f4f3 )
by 光春
03:48
created
src/service/pinduoduo/bin/src/PopAccessTokenClient.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param $clientId 开放平台分配的clientId
29 29
      * @param $clientSecret 开放平台分配的clientSecret
30 30
      */
31
-    public function  __construct($clientId, $clientSecret){
31
+    public function  __construct($clientId, $clientSecret) {
32 32
         $this->clientId = $clientId;
33 33
         $this->clientSecret = $clientSecret;
34 34
     }
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
      * @param $code 授权获取到的code
38 38
      * @return  返回AccessTokenResponse对象
39 39
      */
40
-    public function generate($code){
41
-        if(empty($code)){
40
+    public function generate($code) {
41
+        if (empty($code)) {
42 42
             throw new PopHttpException("Code不能为空");
43 43
         }
44 44
         $request = new AccessTokenRequest();
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
      * @param $refreshToken generate接口获取到的refresh_token,refresh_token有效期是30天
57 57
      * @return 返回刷新后的access_token
58 58
      */
59
-    public function refresh($refreshToken){
60
-        if(empty($refreshToken)){
59
+    public function refresh($refreshToken) {
60
+        if (empty($refreshToken)) {
61 61
             throw new PopHttpException("Refresh token 不能为空");
62 62
         }
63 63
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         return $response;
73 73
     }
74 74
 
75
-    private function postCurl($request){
75
+    private function postCurl($request) {
76 76
         $ch = curl_init();
77 77
         $curlVersion = curl_version();
78 78
         $ua = "PopSDK/".self::$VERSION." (".PHP_OS.") PHP/".PHP_VERSION." CURL/".$curlVersion['version']." "
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
         //设置超时
82 82
         curl_setopt($ch, CURLOPT_TIMEOUT, self::$SECONDS);
83 83
 
84
-        curl_setopt($ch,CURLOPT_URL, self::$OAUTH_SERVER_URL);
85
-        curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
86
-        curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);//严格校验
87
-        curl_setopt($ch,CURLOPT_USERAGENT, $ua);
84
+        curl_setopt($ch, CURLOPT_URL, self::$OAUTH_SERVER_URL);
85
+        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
86
+        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); //严格校验
87
+        curl_setopt($ch, CURLOPT_USERAGENT, $ua);
88 88
         //设置header
89 89
         $headers = array(
90 90
             "Content-type: application/json;charset='utf-8'",
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
111 111
 
112 112
         //返回结果
113
-        if($raw_response){
113
+        if ($raw_response) {
114 114
             curl_close($ch);
115 115
 
116 116
             $response = new PopHttpResponse();
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $response->setBody($raw_response);
119 119
 
120 120
             return $response;
121
-        } else {
121
+        }else {
122 122
             $error = curl_errno($ch);
123 123
             curl_close($ch);
124 124
             throw new PopHttpException("curl出错,错误码:$error");
Please login to merge, or discard this patch.
src/service/pinduoduo/bin/src/PopBaseHttpRequest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 
45 45
     protected final function setUserParam(&$paramMap, $name, $param)
46 46
     {
47
-        if (!is_null($param)&&$param !== "") {
47
+        if (!is_null($param) && $param !== "") {
48 48
             if ($this->isPrimaryType($param)) {
49 49
                 $paramMap[$name] = $param;
50
-            } else {
50
+            }else {
51 51
                 $paramMap[$name] = json_encode($param);
52 52
             }
53 53
         }
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
     {
59 59
         if (is_bool($param)) {
60 60
             return true;
61
-        } else if (is_integer($param)) {
61
+        }else if (is_integer($param)) {
62 62
             return true;
63
-        } else if (is_long($param)) {
63
+        }else if (is_long($param)) {
64 64
             return true;
65
-        } else if (is_float($param)) {
65
+        }else if (is_float($param)) {
66 66
             return true;
67
-        } else if (is_double($param)) {
67
+        }else if (is_double($param)) {
68 68
             return true;
69
-        } else if (is_numeric($param)) {
69
+        }else if (is_numeric($param)) {
70 70
             return true;
71
-        } else {
71
+        }else {
72 72
             return is_string($param);
73 73
         }
74 74
     }
Please login to merge, or discard this patch.
src/service/pinduoduo/bin/src/PopHttpClient.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * SDK版本号
11 11
      */
12
-    public static $VERSION="0.0.2";
12
+    public static $VERSION = "0.0.2";
13 13
 
14 14
     /**
15 15
      * 接口超时时间
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param $clientId 开放平台分配的clientId
33 33
      * @param $clientSecret 开放平台分配的clientSecret
34 34
      */
35
-    public function  __construct($clientId, $clientSecret){
35
+    public function  __construct($clientId, $clientSecret) {
36 36
         $this->clientId = $clientId;
37 37
         $this->clientSecret = $clientSecret;
38 38
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param $access_token 表示调用接口的授权码
44 44
      * @return 接口返回信息
45 45
      */
46
-    public function syncInvoke($request, $access_token = ""){
46
+    public function syncInvoke($request, $access_token = "") {
47 47
 
48 48
         $params = $this->uniqueParams($request, $access_token);
49 49
 
@@ -61,20 +61,20 @@  discard block
 block discarded – undo
61 61
      * @param $request请求参数 $access_token 授权参数
62 62
      * @return 构造后的所有参数
63 63
      */
64
-    private function uniqueParams($request, $access_token){
64
+    private function uniqueParams($request, $access_token) {
65 65
 
66 66
         $params = $request->getParamsMap();
67 67
 
68 68
         $params['client_id'] = $this->clientId;
69 69
 
70
-        if($access_token){
70
+        if ($access_token) {
71 71
             $params['access_token'] = $access_token;
72 72
         }
73 73
 
74 74
         //把boolean转为true 和 false
75
-        foreach ($params as $key=>$val){
76
-            if(is_bool($val)){
77
-                $params[$key] = $val?"true":"false";
75
+        foreach ($params as $key=>$val) {
76
+            if (is_bool($val)) {
77
+                $params[$key] = $val ? "true" : "false";
78 78
             }
79 79
         }
80 80
 
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
      * @param $request 请求的参数
86 86
      * @return 返回md5后的sign值
87 87
      */
88
-    private function makeSign($params){
88
+    private function makeSign($params) {
89 89
 
90 90
         //签名步骤一:按字典序排序参数
91 91
         ksort($params);
92 92
         $string = $this->toUrlParams($params);
93 93
 
94 94
         //签名步骤二:在string首尾加上client_secret
95
-        $string = $this->clientSecret . $string . $this->clientSecret;
95
+        $string = $this->clientSecret.$string.$this->clientSecret;
96 96
 
97 97
         //签名步骤三:MD5加密
98 98
         $string = md5($string);
@@ -111,14 +111,14 @@  discard block
 block discarded – undo
111 111
         $buff = "";
112 112
         foreach ($params as $k => $v)
113 113
         {
114
-            if($k != "sign" && $v !== "" && !is_array($v)){
115
-                $buff .= $k . $v ;
114
+            if ($k != "sign" && $v !== "" && !is_array($v)) {
115
+                $buff .= $k.$v;
116 116
             }
117 117
         }
118 118
         return $buff;
119 119
     }
120 120
     
121
-    private function postCurl($params){
121
+    private function postCurl($params) {
122 122
         $ch = curl_init();
123 123
         $curlVersion = curl_version();
124 124
         $ua = "PopSDK/".self::$VERSION." (".PHP_OS.") PHP/".PHP_VERSION." CURL/".$curlVersion['version']." "
@@ -127,12 +127,12 @@  discard block
 block discarded – undo
127 127
         //设置超时
128 128
         curl_setopt($ch, CURLOPT_TIMEOUT, self::$SECONDS);
129 129
 
130
-        curl_setopt($ch,CURLOPT_URL, $this->apiServerUrl);
131
-        curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
132
-        curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);//严格校验
133
-        curl_setopt($ch,CURLOPT_USERAGENT, $ua);
130
+        curl_setopt($ch, CURLOPT_URL, $this->apiServerUrl);
131
+        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
132
+        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); //严格校验
133
+        curl_setopt($ch, CURLOPT_USERAGENT, $ua);
134 134
         //设置header
135
-        curl_setopt($ch, CURLOPT_HEADER,false);
135
+        curl_setopt($ch, CURLOPT_HEADER, false);
136 136
 
137 137
         //设置header
138 138
         $headers = array(
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
156 156
 
157 157
         //返回结果
158
-        if($raw_response){
158
+        if ($raw_response) {
159 159
             curl_close($ch);
160 160
 
161 161
             $response = new PopHttpResponse();
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $response->setBody($raw_response);
164 164
 
165 165
             return $response;
166
-        } else {
166
+        }else {
167 167
             $error = curl_errno($ch);
168 168
             curl_close($ch);
169 169
             throw new PopHttpException("curl出错,错误码:$error");
Please login to merge, or discard this patch.
src/service/pinduoduo/bin/src/PopHttpException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  */
7 7
 class PopHttpException extends \Exception
8 8
 {
9
-    public function errorMessage(){
9
+    public function errorMessage() {
10 10
         return $this->getMessage();
11 11
     }
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddStockDepotPriorityUpdateRequest.php 1 patch
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -7,98 +7,98 @@
 block discarded – undo
7 7
 class PddStockDepotPriorityUpdateRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
10
+    {
11 11
 
12
-	}
13
-	/**
14
-	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddStockDepotPriorityUpdateRequest_PriorityListItem>, "priority_list")
15
-	*/
16
-	private $priorityList;
12
+    }
13
+    /**
14
+     * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddStockDepotPriorityUpdateRequest_PriorityListItem>, "priority_list")
15
+     */
16
+    private $priorityList;
17 17
 
18
-	protected function setUserParams(&$params)
19
-	{
20
-		$this->setUserParam($params, "priority_list", $this->priorityList);
18
+    protected function setUserParams(&$params)
19
+    {
20
+        $this->setUserParam($params, "priority_list", $this->priorityList);
21 21
 
22
-	}
22
+    }
23 23
 
24
-	public function getVersion()
25
-	{
26
-		return "V1";
27
-	}
24
+    public function getVersion()
25
+    {
26
+        return "V1";
27
+    }
28 28
 
29
-	public function getDataType()
30
-	{
31
-		return "JSON";
32
-	}
29
+    public function getDataType()
30
+    {
31
+        return "JSON";
32
+    }
33 33
 
34
-	public function getType()
35
-	{
36
-		return "pdd.stock.depot.priority.update";
37
-	}
34
+    public function getType()
35
+    {
36
+        return "pdd.stock.depot.priority.update";
37
+    }
38 38
 
39
-	public function setPriorityList($priorityList)
40
-	{
41
-		$this->priorityList = $priorityList;
42
-	}
39
+    public function setPriorityList($priorityList)
40
+    {
41
+        $this->priorityList = $priorityList;
42
+    }
43 43
 
44 44
 }
45 45
 
46 46
 class PddStockDepotPriorityUpdateRequest_PriorityListItem extends PopBaseJsonEntity
47 47
 {
48 48
 
49
-	public function __construct()
50
-	{
51
-
52
-	}
53
-
54
-	/**
55
-	* @JsonProperty(Integer, "priority")
56
-	*/
57
-	private $priority;
58
-
59
-	/**
60
-	* @JsonProperty(Integer, "district_id")
61
-	*/
62
-	private $districtId;
63
-
64
-	/**
65
-	* @JsonProperty(Integer, "city_id")
66
-	*/
67
-	private $cityId;
68
-
69
-	/**
70
-	* @JsonProperty(Integer, "province_id")
71
-	*/
72
-	private $provinceId;
73
-
74
-	/**
75
-	* @JsonProperty(Long, "depot_id")
76
-	*/
77
-	private $depotId;
78
-
79
-	public function setPriority($priority)
80
-	{
81
-		$this->priority = $priority;
82
-	}
83
-
84
-	public function setDistrictId($districtId)
85
-	{
86
-		$this->districtId = $districtId;
87
-	}
88
-
89
-	public function setCityId($cityId)
90
-	{
91
-		$this->cityId = $cityId;
92
-	}
93
-
94
-	public function setProvinceId($provinceId)
95
-	{
96
-		$this->provinceId = $provinceId;
97
-	}
98
-
99
-	public function setDepotId($depotId)
100
-	{
101
-		$this->depotId = $depotId;
102
-	}
49
+    public function __construct()
50
+    {
51
+
52
+    }
53
+
54
+    /**
55
+     * @JsonProperty(Integer, "priority")
56
+     */
57
+    private $priority;
58
+
59
+    /**
60
+     * @JsonProperty(Integer, "district_id")
61
+     */
62
+    private $districtId;
63
+
64
+    /**
65
+     * @JsonProperty(Integer, "city_id")
66
+     */
67
+    private $cityId;
68
+
69
+    /**
70
+     * @JsonProperty(Integer, "province_id")
71
+     */
72
+    private $provinceId;
73
+
74
+    /**
75
+     * @JsonProperty(Long, "depot_id")
76
+     */
77
+    private $depotId;
78
+
79
+    public function setPriority($priority)
80
+    {
81
+        $this->priority = $priority;
82
+    }
83
+
84
+    public function setDistrictId($districtId)
85
+    {
86
+        $this->districtId = $districtId;
87
+    }
88
+
89
+    public function setCityId($cityId)
90
+    {
91
+        $this->cityId = $cityId;
92
+    }
93
+
94
+    public function setProvinceId($provinceId)
95
+    {
96
+        $this->provinceId = $provinceId;
97
+    }
98
+
99
+    public function setDepotId($depotId)
100
+    {
101
+        $this->depotId = $depotId;
102
+    }
103 103
 
104 104
 }
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,27 +7,27 @@
 block discarded – undo
7 7
 class PddLogisticsTicketProblemTypeGetRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
10
+    {
11 11
 
12
-	}
13
-	protected function setUserParams(&$params)
14
-	{
12
+    }
13
+    protected function setUserParams(&$params)
14
+    {
15 15
 
16
-	}
16
+    }
17 17
 
18
-	public function getVersion()
19
-	{
20
-		return "V1";
21
-	}
18
+    public function getVersion()
19
+    {
20
+        return "V1";
21
+    }
22 22
 
23
-	public function getDataType()
24
-	{
25
-		return "JSON";
26
-	}
23
+    public function getDataType()
24
+    {
25
+        return "JSON";
26
+    }
27 27
 
28
-	public function getType()
29
-	{
30
-		return "pdd.logistics.ticket.problem.type.get";
31
-	}
28
+    public function getType()
29
+    {
30
+        return "pdd.logistics.ticket.problem.type.get";
31
+    }
32 32
 
33 33
 }
Please login to merge, or discard this patch.
service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidQueryRequest.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,60 +7,60 @@
 block discarded – undo
7 7
 class PddDdkOauthGoodsPidQueryRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
10
+    {
11 11
 
12
-	}
13
-	/**
14
-	* @JsonProperty(Integer, "page")
15
-	*/
16
-	private $page;
12
+    }
13
+    /**
14
+     * @JsonProperty(Integer, "page")
15
+     */
16
+    private $page;
17 17
 
18
-	/**
19
-	* @JsonProperty(Integer, "page_size")
20
-	*/
21
-	private $pageSize;
18
+    /**
19
+     * @JsonProperty(Integer, "page_size")
20
+     */
21
+    private $pageSize;
22 22
 
23
-	/**
24
-	* @JsonProperty(List<String>, "pid_list")
25
-	*/
26
-	private $pidList;
23
+    /**
24
+     * @JsonProperty(List<String>, "pid_list")
25
+     */
26
+    private $pidList;
27 27
 
28
-	protected function setUserParams(&$params)
29
-	{
30
-		$this->setUserParam($params, "page", $this->page);
31
-		$this->setUserParam($params, "page_size", $this->pageSize);
32
-		$this->setUserParam($params, "pid_list", $this->pidList);
28
+    protected function setUserParams(&$params)
29
+    {
30
+        $this->setUserParam($params, "page", $this->page);
31
+        $this->setUserParam($params, "page_size", $this->pageSize);
32
+        $this->setUserParam($params, "pid_list", $this->pidList);
33 33
 
34
-	}
34
+    }
35 35
 
36
-	public function getVersion()
37
-	{
38
-		return "V1";
39
-	}
36
+    public function getVersion()
37
+    {
38
+        return "V1";
39
+    }
40 40
 
41
-	public function getDataType()
42
-	{
43
-		return "JSON";
44
-	}
41
+    public function getDataType()
42
+    {
43
+        return "JSON";
44
+    }
45 45
 
46
-	public function getType()
47
-	{
48
-		return "pdd.ddk.oauth.goods.pid.query";
49
-	}
46
+    public function getType()
47
+    {
48
+        return "pdd.ddk.oauth.goods.pid.query";
49
+    }
50 50
 
51
-	public function setPage($page)
52
-	{
53
-		$this->page = $page;
54
-	}
51
+    public function setPage($page)
52
+    {
53
+        $this->page = $page;
54
+    }
55 55
 
56
-	public function setPageSize($pageSize)
57
-	{
58
-		$this->pageSize = $pageSize;
59
-	}
56
+    public function setPageSize($pageSize)
57
+    {
58
+        $this->pageSize = $pageSize;
59
+    }
60 60
 
61
-	public function setPidList($pidList)
62
-	{
63
-		$this->pidList = $pidList;
64
-	}
61
+    public function setPidList($pidList)
62
+    {
63
+        $this->pidList = $pidList;
64
+    }
65 65
 
66 66
 }
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanCreateAdPlanRequest.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,49 +7,49 @@
 block discarded – undo
7 7
 class PddAdApiPlanQueryCanCreateAdPlanRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
11
-
12
-	}
13
-	/**
14
-	* @JsonProperty(String, "planName")
15
-	*/
16
-	private $planName;
17
-
18
-	/**
19
-	* @JsonProperty(Integer, "scenesType")
20
-	*/
21
-	private $scenesType;
22
-
23
-	protected function setUserParams(&$params)
24
-	{
25
-		$this->setUserParam($params, "planName", $this->planName);
26
-		$this->setUserParam($params, "scenesType", $this->scenesType);
27
-
28
-	}
29
-
30
-	public function getVersion()
31
-	{
32
-		return "V1";
33
-	}
34
-
35
-	public function getDataType()
36
-	{
37
-		return "JSON";
38
-	}
39
-
40
-	public function getType()
41
-	{
42
-		return "pdd.ad.api.plan.query.can.create.ad.plan";
43
-	}
44
-
45
-	public function setPlanName($planName)
46
-	{
47
-		$this->planName = $planName;
48
-	}
49
-
50
-	public function setScenesType($scenesType)
51
-	{
52
-		$this->scenesType = $scenesType;
53
-	}
10
+    {
11
+
12
+    }
13
+    /**
14
+     * @JsonProperty(String, "planName")
15
+     */
16
+    private $planName;
17
+
18
+    /**
19
+     * @JsonProperty(Integer, "scenesType")
20
+     */
21
+    private $scenesType;
22
+
23
+    protected function setUserParams(&$params)
24
+    {
25
+        $this->setUserParam($params, "planName", $this->planName);
26
+        $this->setUserParam($params, "scenesType", $this->scenesType);
27
+
28
+    }
29
+
30
+    public function getVersion()
31
+    {
32
+        return "V1";
33
+    }
34
+
35
+    public function getDataType()
36
+    {
37
+        return "JSON";
38
+    }
39
+
40
+    public function getType()
41
+    {
42
+        return "pdd.ad.api.plan.query.can.create.ad.plan";
43
+    }
44
+
45
+    public function setPlanName($planName)
46
+    {
47
+        $this->planName = $planName;
48
+    }
49
+
50
+    public function setScenesType($scenesType)
51
+    {
52
+        $this->scenesType = $scenesType;
53
+    }
54 54
 
55 55
 }
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddLogisticsCsHistoryMessageGetRequest.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -7,38 +7,38 @@
 block discarded – undo
7 7
 class PddLogisticsCsHistoryMessageGetRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
11
-
12
-	}
13
-	/**
14
-	* @JsonProperty(String, "session_id")
15
-	*/
16
-	private $sessionId;
17
-
18
-	protected function setUserParams(&$params)
19
-	{
20
-		$this->setUserParam($params, "session_id", $this->sessionId);
21
-
22
-	}
23
-
24
-	public function getVersion()
25
-	{
26
-		return "V1";
27
-	}
28
-
29
-	public function getDataType()
30
-	{
31
-		return "JSON";
32
-	}
33
-
34
-	public function getType()
35
-	{
36
-		return "pdd.logistics.cs.history.message.get";
37
-	}
38
-
39
-	public function setSessionId($sessionId)
40
-	{
41
-		$this->sessionId = $sessionId;
42
-	}
10
+    {
11
+
12
+    }
13
+    /**
14
+     * @JsonProperty(String, "session_id")
15
+     */
16
+    private $sessionId;
17
+
18
+    protected function setUserParams(&$params)
19
+    {
20
+        $this->setUserParam($params, "session_id", $this->sessionId);
21
+
22
+    }
23
+
24
+    public function getVersion()
25
+    {
26
+        return "V1";
27
+    }
28
+
29
+    public function getDataType()
30
+    {
31
+        return "JSON";
32
+    }
33
+
34
+    public function getType()
35
+    {
36
+        return "pdd.logistics.cs.history.message.get";
37
+    }
38
+
39
+    public function setSessionId($sessionId)
40
+    {
41
+        $this->sessionId = $sessionId;
42
+    }
43 43
 
44 44
 }
Please login to merge, or discard this patch.