!3 Array and string offset access syntax with curly braces is mandatory deprecated since PHP 7.4

Merge pull request !3 from walkingway/master
This commit is contained in:
巴掌 authored and Gitee committed 2022-07-18 01:49:36 +00:00 Unverified
commit 3e10e99484
1 file changed
+3 -3
+3 -3
View File
@@ -195,12 +195,12 @@ class Index extends BaseController
{
$x = 0;
}
$char .= $key{$x};
$char .= $key[$x];
$x++;
}
for ($i = 0; $i < $len; $i++)
{
$str .= chr(ord($data{$i}) + (ord($char{$i})) % 256);
$str .= chr(ord($data[$i]) + (ord($char[$i])) % 256);
}
return base64_encode($str);
}
@@ -339,5 +339,5 @@ class Index extends BaseController
$jinyong = strtotime("$now+".$jyshijian." day");
return $jinyong;
}
}