File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function login($username, $password)
55
55
$ crawler = $ this ->client ->submit ($ form );
56
56
57
57
$ accountList = [];
58
-
58
+
59
59
$ crawler ->filter ('.main_group_account_row ' )->each (function ($ account ) use (&$ accountList ) {
60
60
$ name = $ account ;
61
61
$ name = $ name ->filter ('.NicknameField a ' )->first ();
@@ -187,10 +187,10 @@ public function filterTransactions($crawler)
187
187
' ;
188
188
$ html = $ crawler ->html ();
189
189
190
- preg_match_all ($ pattern , $ html , $ matches );
190
+ preg_match_all (' /({"Transactions":(?:.+)})\);/ ' , $ html , $ matches );
191
191
192
- foreach ($ matches [0 ] as $ _temp ) {
193
- if (strstr ($ _temp , '{" Transactions" ' )) {
192
+ foreach ($ matches [1 ] as $ _temp ) {
193
+ if (strstr ($ _temp , 'Transactions ' )) {
194
194
$ transactions = json_decode ($ _temp );
195
195
break ;
196
196
}
You can’t perform that action at this time.
0 commit comments