Passed
Push — master ( 2fcbd6...c25238 )
by ma
02:52
created
example/wx.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,23 +30,23 @@
 block discarded – undo
30 30
     ],
31 31
 ];
32 32
 
33
-$seq = $_GET['seq']??1;
34
-$limit = $_GET['limit']??10;
33
+$seq = $_GET['seq'] ?? 1;
34
+$limit = $_GET['limit'] ?? 10;
35 35
 
36 36
 try {
37
-    $wxFinanceSDK = WxFinanceSDK::init($corpConfig,$srcConfig);
37
+    $wxFinanceSDK = WxFinanceSDK::init($corpConfig, $srcConfig);
38 38
     // 获取会话记录数据(解密)
39
-    $list = $wxFinanceSDK->getDecryptChatData($seq,$limit);
39
+    $list = $wxFinanceSDK->getDecryptChatData($seq, $limit);
40 40
 
41
-    foreach ($list as $key=>$item){
42
-        if($wxFinanceSDK->isMedia($item['msgtype'])){
41
+    foreach ($list as $key=>$item) {
42
+        if ($wxFinanceSDK->isMedia($item['msgtype'])) {
43 43
             // 下载媒体资源
44
-            $list[$key]['media_path'] = $wxFinanceSDK->getDownloadMediaData($item[$item['msgtype']],$item['msgtype']);
44
+            $list[$key]['media_path'] = $wxFinanceSDK->getDownloadMediaData($item[$item['msgtype']], $item['msgtype']);
45 45
         }
46 46
     }
47 47
     var_dump($list);
48 48
 
49
-}catch (FinanceSDKException $exception){
50
-    echo $exception->getMessage();exit();
49
+} catch (FinanceSDKException $exception) {
50
+    echo $exception->getMessage(); exit();
51 51
 }
52 52
 
Please login to merge, or discard this patch.