--Library
-----Think
-----Storage.class.php
在使用过程中经常会出现如下bug:
ucfirst() expects parameter 1 to be string, array given F:\ZhouLangProject\php\langcms\ThinkPHP\Library\Think\Storage.class.php 第 36 行.
此行代码为: $method_type=$method.ucfirst($type);
我的解决方案如下:
if(!is_array($type)) {
$method_type=$method.(!empty($type)?ucfirst($type):'');
} else {
$method_type=$method;
}
希望能给大家提供帮助
最佳答案