File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1800,8 +1800,28 @@ function getOrderDetailKeys($from_id, $id){
18001800 $ up = $ row ->up ;
18011801 $ down = $ row ->down ;
18021802 $ enable = $ row ->enable ;
1803+ $ expiryTime = $ row ->expiryTime ;
1804+
18031805 $ netType = json_decode ($ row ->streamSettings )->network ;
18041806 $ security = json_decode ($ row ->streamSettings )->security ;
1807+
1808+ $ clientsStates = $ row ->clientStats ;
1809+
1810+ $ inboundEmail = $ clients [0 ]->email ;
1811+ $ allEmails = array_column ($ clientsStates ,'email ' );
1812+ $ clienEmailKey = array_search ($ inboundEmail ,$ allEmails );
1813+
1814+ $ clientTotal = $ clientsStates [$ clienEmailKey ]->total ;
1815+ $ clientUp = $ clientsStates [$ clienEmailKey ]->up ;
1816+ $ clientDown = $ clientsStates [$ clienEmailKey ]->down ;
1817+ $ clientExpiryTime = $ clientsStates [$ clienEmailKey ]->expiryTime ;
1818+
1819+ if ($ clientTotal != 0 && $ clientTotal != null && $ clientExpiryTime != 0 && $ clientExpiryTime != null ){
1820+ $ up += $ clientUp ;
1821+ $ down += $ clientDown ;
1822+ $ total = $ clientTotal ;
1823+ }
1824+
18051825 break ;
18061826 }
18071827 }
You can’t perform that action at this time.
0 commit comments