Array and string offset access syntax with curly braces is deprecated thinkPHP5 查询Mysql7.4版本问题

原因是因为MySQL7.4版本不再支持{}写法,统一为数组[ ],解决很简单通过修改tp5的Query.php文件的字段中

$seq = (ord($value{0}) % $rule['num']) + 1; 的$value{0}大括号改为$value[0]


 

 

posted @ 2020-09-07 22:35  至疾  阅读(2864)  评论(2)    收藏  举报