@@ -15,14 +15,14 @@ |
||
15 | 15 | $request->setModifyQuantityType(1); |
16 | 16 | $request->setQuantityDelta(1); |
17 | 17 | $request->setSkuId(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 |
@@ -14,14 +14,14 @@ |
||
14 | 14 | $request->setGroupId(1); |
15 | 15 | $request->setPageNumber(1); |
16 | 16 | $request->setPageSize(1); |
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 |
@@ -25,14 +25,14 @@ |
||
25 | 25 | $request->setStoreNumber('str'); |
26 | 26 | $request->setStorePhone('str'); |
27 | 27 | $request->setTradeType(1); |
28 | -try{ |
|
28 | +try { |
|
29 | 29 | $response = $client->syncInvoke($request); |
30 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
30 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
31 | 31 | echo $e->getMessage(); |
32 | 32 | exit; |
33 | 33 | } |
34 | 34 | $content = $response->getContent(); |
35 | -if(isset($content['error_response'])){ |
|
35 | +if (isset($content['error_response'])) { |
|
36 | 36 | echo "异常返回"; |
37 | 37 | } |
38 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
39 | 38 | \ No newline at end of file |
39 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
40 | 40 | \ No newline at end of file |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddOrderPromiseInfoGetRequest(); |
13 | 13 | |
14 | 14 | $request->setPromiseId(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 PddGoodsCatTemplateGetRequest(); |
13 | 13 | |
14 | 14 | $request->setCatId(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 |
@@ -20,14 +20,14 @@ |
||
20 | 20 | $request->setReviewChangeType(1); |
21 | 21 | $request->setSubTraceId('str'); |
22 | 22 | $request->setTraceId('str'); |
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 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | $request = new PddCloudWmsOrderSendRequest(); |
13 | 13 | |
14 | 14 | $request->setWmsOrderSendRequest(); |
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 |
@@ -14,14 +14,14 @@ |
||
14 | 14 | $request->setAdId(1); |
15 | 15 | $request->setAdUnitBids(); |
16 | 16 | $request->setBidReferenceType(1); |
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 |
@@ -25,14 +25,14 @@ |
||
25 | 25 | $request->setStoreNumber('str'); |
26 | 26 | $request->setStorePhone('str'); |
27 | 27 | $request->setTradeType(1); |
28 | -try{ |
|
28 | +try { |
|
29 | 29 | $response = $client->syncInvoke($request); |
30 | -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ |
|
30 | +} catch (Com\Pdd\Pop\Sdk\PopHttpException $e) { |
|
31 | 31 | echo $e->getMessage(); |
32 | 32 | exit; |
33 | 33 | } |
34 | 34 | $content = $response->getContent(); |
35 | -if(isset($content['error_response'])){ |
|
35 | +if (isset($content['error_response'])) { |
|
36 | 36 | echo "异常返回"; |
37 | 37 | } |
38 | -echo json_encode($content,JSON_UNESCAPED_UNICODE); |
|
39 | 38 | \ No newline at end of file |
39 | +echo json_encode($content, JSON_UNESCAPED_UNICODE); |
|
40 | 40 | \ No newline at end of file |