@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | $request->setStockMoveOrderActionDto(); |
15 | 15 | $request->setStockMoveRecordActionDtoList(); |
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->setOrderSn('str'); |
15 | 15 | $request->setQueryOrderType(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 |
@@ -18,14 +18,14 @@ |
||
18 | 18 | $request->setPage(1); |
19 | 19 | $request->setOuterGoodsId('str'); |
20 | 20 | $request->setCostTemplateId(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 |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | $request->setLimit(1); |
15 | 15 | $request->setStartId(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 |
@@ -17,14 +17,14 @@ |
||
17 | 17 | $request->setTemplateParam(); |
18 | 18 | $request->setOutId('str'); |
19 | 19 | $request->setSmsUpExtendCode('str'); |
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 |
@@ -20,14 +20,14 @@ |
||
20 | 20 | $request->setTotalPayFee(1); |
21 | 21 | $request->setTotalPay(1); |
22 | 22 | $request->setPassengerInfoList(); |
23 | -try{ |
|
23 | +try { |
|
24 | 24 | $response = $client->syncInvoke($request); |
25 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
25 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
26 | 26 | echo $e->getMessage(); |
27 | 27 | exit; |
28 | 28 | } |
29 | 29 | $content = $response->getContent(); |
30 | -if(isset($content['error_response'])){ |
|
30 | +if (isset($content['error_response'])) { |
|
31 | 31 | echo "异常返回"; |
32 | 32 | } |
33 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
34 | 33 | \ No newline at end of file |
34 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
35 | 35 | \ No newline at end of file |
@@ -18,14 +18,14 @@ |
||
18 | 18 | $request->setInitQuantity(1); |
19 | 19 | $request->setUserLimit(1); |
20 | 20 | $request->setGoodsId(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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddGoodsCpsUnitCreateRequest(); |
13 | 13 | |
14 | 14 | $request->setUnits(); |
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 PddCloudprintStdtemplatesGetRequest(); |
13 | 13 | |
14 | 14 | $request->setWpCode('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 |