Skip to content

Commit

Permalink
修复fecmall在php-7.4下面的版本不兼容问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Apr 21, 2020
1 parent ab9d562 commit 7edfdb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function init()
/*
* service component, data provider
*/
parent::init();
// parent::init();
}

public function getLastData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Login
*/
public function init()
{
parent::init();
// parent::init();
}

public function getLastData()
Expand Down
5 changes: 3 additions & 2 deletions lib/google/lib/auth/Google_Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ static public function getStrLen($str) {
$strlenVar = strlen($str);
$d = $ret = 0;
for ($count = 0; $count < $strlenVar; ++ $count) {
$ordinalValue = ord($str{$ret});
//$ordinalValue = ord($str{$ret});
$ordinalValue = ord(substr($str,$ret, 1));
switch (true) {
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
// characters U-00000000 - U-0000007F (same as ASCII)
Expand Down Expand Up @@ -114,4 +115,4 @@ public static function normalize($arr) {
}
return $normalized;
}
}
}

0 comments on commit 7edfdb0

Please sign in to comment.