@@ -17,14 +17,14 @@ |
||
17 | 17 | $request->setListId('str'); |
18 | 18 | $request->setOffset(1); |
19 | 19 | $request->setPid('str'); |
20 | -try{ |
|
20 | +try { |
|
21 | 21 | $response = $client->syncInvoke($request, Config::$accessToken); |
22 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
22 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
23 | 23 | echo $e->getMessage(); |
24 | 24 | exit; |
25 | 25 | } |
26 | 26 | $content = $response->getContent(); |
27 | -if(isset($content['error_response'])){ |
|
27 | +if (isset($content['error_response'])) { |
|
28 | 28 | echo "异常返回"; |
29 | 29 | } |
30 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
31 | 30 | \ No newline at end of file |
31 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
32 | 32 | \ No newline at end of file |
@@ -14,14 +14,14 @@ |
||
14 | 14 | $request->setPddOrderId('str'); |
15 | 15 | $request->setOrderId('str'); |
16 | 16 | $request->setPassengerInfos(); |
17 | -try{ |
|
17 | +try { |
|
18 | 18 | $response = $client->syncInvoke($request); |
19 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
19 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
20 | 20 | echo $e->getMessage(); |
21 | 21 | exit; |
22 | 22 | } |
23 | 23 | $content = $response->getContent(); |
24 | -if(isset($content['error_response'])){ |
|
24 | +if (isset($content['error_response'])) { |
|
25 | 25 | echo "异常返回"; |
26 | 26 | } |
27 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
28 | 27 | \ No newline at end of file |
28 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
29 | 29 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddGoodsSizespecTemplateDeleteRequest(); |
13 | 13 | |
14 | 14 | $request->setId(1); |
15 | -try{ |
|
15 | +try { |
|
16 | 16 | $response = $client->syncInvoke($request); |
17 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
17 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
18 | 18 | echo $e->getMessage(); |
19 | 19 | exit; |
20 | 20 | } |
21 | 21 | $content = $response->getContent(); |
22 | -if(isset($content['error_response'])){ |
|
22 | +if (isset($content['error_response'])) { |
|
23 | 23 | echo "异常返回"; |
24 | 24 | } |
25 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
26 | 25 | \ No newline at end of file |
26 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
27 | 27 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddFdsOrderGetRequest(); |
13 | 13 | |
14 | 14 | $request->setParamFdsOrderGetRequest(); |
15 | -try{ |
|
15 | +try { |
|
16 | 16 | $response = $client->syncInvoke($request); |
17 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
17 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
18 | 18 | echo $e->getMessage(); |
19 | 19 | exit; |
20 | 20 | } |
21 | 21 | $content = $response->getContent(); |
22 | -if(isset($content['error_response'])){ |
|
22 | +if (isset($content['error_response'])) { |
|
23 | 23 | echo "异常返回"; |
24 | 24 | } |
25 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
26 | 25 | \ No newline at end of file |
26 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
27 | 27 | \ No newline at end of file |
@@ -11,14 +11,14 @@ |
||
11 | 11 | |
12 | 12 | $request = new PddRefundAddressListGetRequest(); |
13 | 13 | |
14 | -try{ |
|
14 | +try { |
|
15 | 15 | $response = $client->syncInvoke($request); |
16 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
16 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
17 | 17 | echo $e->getMessage(); |
18 | 18 | exit; |
19 | 19 | } |
20 | 20 | $content = $response->getContent(); |
21 | -if(isset($content['error_response'])){ |
|
21 | +if (isset($content['error_response'])) { |
|
22 | 22 | echo "异常返回"; |
23 | 23 | } |
24 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
25 | 24 | \ No newline at end of file |
25 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
26 | 26 | \ No newline at end of file |
@@ -18,14 +18,14 @@ |
||
18 | 18 | $request->setMinOrderAmount(1); |
19 | 19 | $request->setInitQuantity(1); |
20 | 20 | $request->setUserLimit(1); |
21 | -try{ |
|
21 | +try { |
|
22 | 22 | $response = $client->syncInvoke($request); |
23 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
23 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
24 | 24 | echo $e->getMessage(); |
25 | 25 | exit; |
26 | 26 | } |
27 | 27 | $content = $response->getContent(); |
28 | -if(isset($content['error_response'])){ |
|
28 | +if (isset($content['error_response'])) { |
|
29 | 29 | echo "异常返回"; |
30 | 30 | } |
31 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
32 | 31 | \ No newline at end of file |
32 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
33 | 33 | \ No newline at end of file |
@@ -21,14 +21,14 @@ |
||
21 | 21 | $request->setPIdList(array('str')); |
22 | 22 | $request->setGenerateWeApp(true); |
23 | 23 | $request->setKeyword('str'); |
24 | -try{ |
|
24 | +try { |
|
25 | 25 | $response = $client->syncInvoke($request); |
26 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
26 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
27 | 27 | echo $e->getMessage(); |
28 | 28 | exit; |
29 | 29 | } |
30 | 30 | $content = $response->getContent(); |
31 | -if(isset($content['error_response'])){ |
|
31 | +if (isset($content['error_response'])) { |
|
32 | 32 | echo "异常返回"; |
33 | 33 | } |
34 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
35 | 34 | \ No newline at end of file |
35 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
36 | 36 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddKttGoodsCreateSpecRequest(); |
13 | 13 | |
14 | 14 | $request->setSpecMap(); |
15 | -try{ |
|
15 | +try { |
|
16 | 16 | $response = $client->syncInvoke($request); |
17 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
17 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
18 | 18 | echo $e->getMessage(); |
19 | 19 | exit; |
20 | 20 | } |
21 | 21 | $content = $response->getContent(); |
22 | -if(isset($content['error_response'])){ |
|
22 | +if (isset($content['error_response'])) { |
|
23 | 23 | echo "异常返回"; |
24 | 24 | } |
25 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
26 | 25 | \ No newline at end of file |
26 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
27 | 27 | \ No newline at end of file |
@@ -16,14 +16,14 @@ |
||
16 | 16 | $request->setSkuId(1); |
17 | 17 | $request->setOuterId('str'); |
18 | 18 | $request->setUpdateType(1); |
19 | -try{ |
|
19 | +try { |
|
20 | 20 | $response = $client->syncInvoke($request); |
21 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
21 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
22 | 22 | echo $e->getMessage(); |
23 | 23 | exit; |
24 | 24 | } |
25 | 25 | $content = $response->getContent(); |
26 | -if(isset($content['error_response'])){ |
|
26 | +if (isset($content['error_response'])) { |
|
27 | 27 | echo "异常返回"; |
28 | 28 | } |
29 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
30 | 29 | \ No newline at end of file |
30 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
31 | 31 | \ No newline at end of file |