@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | $request->setGoodsId(1); |
15 | 15 | $request->setScenesType(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 |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | $request->setGroupId(1); |
15 | 15 | $request->setStoreIdList(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 |
@@ -26,14 +26,14 @@ |
||
26 | 26 | $request->setStoreNumber('str'); |
27 | 27 | $request->setStorePhone('str'); |
28 | 28 | $request->setTradeType(1); |
29 | -try{ |
|
29 | +try { |
|
30 | 30 | $response = $client->syncInvoke($request); |
31 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
31 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
32 | 32 | echo $e->getMessage(); |
33 | 33 | exit; |
34 | 34 | } |
35 | 35 | $content = $response->getContent(); |
36 | -if(isset($content['error_response'])){ |
|
36 | +if (isset($content['error_response'])) { |
|
37 | 37 | echo "异常返回"; |
38 | 38 | } |
39 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
40 | 39 | \ No newline at end of file |
40 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
41 | 41 | \ No newline at end of file |
@@ -15,14 +15,14 @@ |
||
15 | 15 | $request->setPageSize(1); |
16 | 16 | $request->setServiceOrderSn('str'); |
17 | 17 | $request->setSettleMonth('str'); |
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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddWmsReturnorderCreateRequest(); |
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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddTrainCancelReserveRequest(); |
13 | 13 | |
14 | 14 | $request->setOrderId('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 |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | $request->setPid('str'); |
15 | 15 | $request->setCustomParameters('str'); |
16 | -try{ |
|
16 | +try { |
|
17 | 17 | $response = $client->syncInvoke($request, Config::$accessToken); |
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 |
@@ -18,14 +18,14 @@ |
||
18 | 18 | $request->setUrl('str'); |
19 | 19 | $request->setGenerateSchemaUrl(true); |
20 | 20 | $request->setGenerateQqApp(true); |
21 | -try{ |
|
21 | +try { |
|
22 | 22 | $response = $client->syncInvoke($request, Config::$accessToken); |
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 |
@@ -19,14 +19,14 @@ |
||
19 | 19 | $request->setDiscount(1); |
20 | 20 | $request->setInitQuantity(1); |
21 | 21 | $request->setRemainQuantity(1); |
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 |