@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddGoodsCpsMallUnitChangeRequest(); |
13 | 13 | |
14 | 14 | $request->setRate(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 |
@@ -19,14 +19,14 @@ |
||
19 | 19 | $request->setDeliveryAddress('str'); |
20 | 20 | $request->setDeliveryId('str'); |
21 | 21 | $request->setOrderSn('str'); |
22 | -try{ |
|
22 | +try { |
|
23 | 23 | $response = $client->syncInvoke($request); |
24 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
24 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
25 | 25 | echo $e->getMessage(); |
26 | 26 | exit; |
27 | 27 | } |
28 | 28 | $content = $response->getContent(); |
29 | -if(isset($content['error_response'])){ |
|
29 | +if (isset($content['error_response'])) { |
|
30 | 30 | echo "异常返回"; |
31 | 31 | } |
32 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
33 | 32 | \ No newline at end of file |
33 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
34 | 34 | \ No newline at end of file |
@@ -11,14 +11,14 @@ |
||
11 | 11 | |
12 | 12 | $request = new PddAdApiUnitBidQueryTargetingTagListRequest(); |
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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddPopAuthTokenCreateRequest(); |
13 | 13 | |
14 | 14 | $request->setCode('str'); |
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 PddMallCpsProtocolStatusQueryRequest(); |
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 |
@@ -17,14 +17,14 @@ |
||
17 | 17 | $request->setReturnCount(true); |
18 | 18 | $request->setStartUpdateTime(1); |
19 | 19 | $request->setQueryOrderType(1); |
20 | -try{ |
|
20 | +try { |
|
21 | 21 | $response = $client->syncInvoke($request); |
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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddGoodsLogisticsSerTemplateDetailRequest(); |
13 | 13 | |
14 | 14 | $request->setTemplateId('str'); |
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 PddRdcPddgeniusSendgoodsCancelRequest(); |
13 | 13 | |
14 | 14 | $request->setParam(); |
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 |
@@ -15,14 +15,14 @@ |
||
15 | 15 | $request->setFileId(1); |
16 | 16 | $request->setGoodsId(1); |
17 | 17 | $request->setMaterialType(1); |
18 | -try{ |
|
18 | +try { |
|
19 | 19 | $response = $client->syncInvoke($request); |
20 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
20 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
21 | 21 | echo $e->getMessage(); |
22 | 22 | exit; |
23 | 23 | } |
24 | 24 | $content = $response->getContent(); |
25 | -if(isset($content['error_response'])){ |
|
25 | +if (isset($content['error_response'])) { |
|
26 | 26 | echo "异常返回"; |
27 | 27 | } |
28 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
29 | 28 | \ No newline at end of file |
29 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
30 | 30 | \ No newline at end of file |