@@ -28,14 +28,14 @@ |
||
28 | 28 | $request->setTrainNo('str'); |
29 | 29 | $request->setUseIdCardIn(1); |
30 | 30 | $request->setVendorTime('str'); |
31 | -try{ |
|
31 | +try { |
|
32 | 32 | $response = $client->syncInvoke($request); |
33 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
33 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
34 | 34 | echo $e->getMessage(); |
35 | 35 | exit; |
36 | 36 | } |
37 | 37 | $content = $response->getContent(); |
38 | -if(isset($content['error_response'])){ |
|
38 | +if (isset($content['error_response'])) { |
|
39 | 39 | echo "异常返回"; |
40 | 40 | } |
41 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
42 | 41 | \ No newline at end of file |
42 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
43 | 43 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddFdsWaybillReturnRequest(); |
13 | 13 | |
14 | 14 | $request->setParamFdsWaybillReturnRequest(); |
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->setPddOrderId('str'); |
20 | 20 | $request->setRequestId('str'); |
21 | 21 | $request->setVendorTime('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 |
@@ -14,14 +14,14 @@ |
||
14 | 14 | $request->setOuterCatId(1); |
15 | 15 | $request->setOuterCatName('str'); |
16 | 16 | $request->setOuterGoodsName('str'); |
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 |
@@ -16,14 +16,14 @@ |
||
16 | 16 | $request->setMarketPriceInYuan('str'); |
17 | 17 | $request->setSkuPriceList(); |
18 | 18 | $request->setSyncGoodsOperate(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 |
@@ -16,14 +16,14 @@ |
||
16 | 16 | $request->setAttachUrl(); |
17 | 17 | $request->setServiceStatus(1); |
18 | 18 | $request->setCompensateAmount(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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddPngPermissionsMallStaffPushConfirmRequest(); |
13 | 13 | |
14 | 14 | $request->setFromMallId(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 |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | $request->setAdCreativeCreateMessage(); |
15 | 15 | $request->setAdId(1); |
16 | -try{ |
|
16 | +try { |
|
17 | 17 | $response = $client->syncInvoke($request); |
18 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
18 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
19 | 19 | echo $e->getMessage(); |
20 | 20 | exit; |
21 | 21 | } |
22 | 22 | $content = $response->getContent(); |
23 | -if(isset($content['error_response'])){ |
|
23 | +if (isset($content['error_response'])) { |
|
24 | 24 | echo "异常返回"; |
25 | 25 | } |
26 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
27 | 26 | \ No newline at end of file |
27 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
28 | 28 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddGoodsMaterialDeleteRequest(); |
13 | 13 | |
14 | 14 | $request->setMaterialId(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 |