@@ -17,14 +17,14 @@ |
||
17 | 17 | $request->setWareType(1); |
18 | 18 | $request->setPage(1); |
19 | 19 | $request->setSize(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 PddFdsWaybillGetRequest(); |
13 | 13 | |
14 | 14 | $request->setParamFdsWaybillGetRequest(); |
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 |
@@ -24,14 +24,14 @@ |
||
24 | 24 | $request->setCrhPassword('str'); |
25 | 25 | $request->setSwitchAccount(1); |
26 | 26 | $request->setPassengerInfos(); |
27 | -try{ |
|
27 | +try { |
|
28 | 28 | $response = $client->syncInvoke($request); |
29 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
29 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
30 | 30 | echo $e->getMessage(); |
31 | 31 | exit; |
32 | 32 | } |
33 | 33 | $content = $response->getContent(); |
34 | -if(isset($content['error_response'])){ |
|
34 | +if (isset($content['error_response'])) { |
|
35 | 35 | echo "异常返回"; |
36 | 36 | } |
37 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
38 | 37 | \ No newline at end of file |
38 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
39 | 39 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddStockWareDetailQueryRequest(); |
13 | 13 | |
14 | 14 | $request->setWareId(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 PddPromotionCouponCloseRequest(); |
13 | 13 | |
14 | 14 | $request->setBatchId(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->setDataOperateStatus(1); |
15 | 15 | $request->setUnitCreativeIds(array(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 |
@@ -35,14 +35,14 @@ |
||
35 | 35 | $request->setIdCardCheckIn(1); |
36 | 36 | $request->setGateNo('str'); |
37 | 37 | $request->setDistance('str'); |
38 | -try{ |
|
38 | +try { |
|
39 | 39 | $response = $client->syncInvoke($request); |
40 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
40 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
41 | 41 | echo $e->getMessage(); |
42 | 42 | exit; |
43 | 43 | } |
44 | 44 | $content = $response->getContent(); |
45 | -if(isset($content['error_response'])){ |
|
45 | +if (isset($content['error_response'])) { |
|
46 | 46 | echo "异常返回"; |
47 | 47 | } |
48 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
49 | 48 | \ No newline at end of file |
49 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
50 | 50 | \ No newline at end of file |
@@ -22,14 +22,14 @@ |
||
22 | 22 | $request->setSubOrderId('str'); |
23 | 23 | $request->setSubPddOrderId('str'); |
24 | 24 | $request->setVendorTime('str'); |
25 | -try{ |
|
25 | +try { |
|
26 | 26 | $response = $client->syncInvoke($request); |
27 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
27 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
28 | 28 | echo $e->getMessage(); |
29 | 29 | exit; |
30 | 30 | } |
31 | 31 | $content = $response->getContent(); |
32 | -if(isset($content['error_response'])){ |
|
32 | +if (isset($content['error_response'])) { |
|
33 | 33 | echo "异常返回"; |
34 | 34 | } |
35 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
36 | 35 | \ No newline at end of file |
36 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
37 | 37 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddWmsOrderCallbackRequest(); |
13 | 13 | |
14 | 14 | $request->setRequest(); |
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 |