最新消息:iOS编程开发交流群(6906921) ,Mac.Cocoa开发交流群(7758675) 欢迎iOS/macOS开发编程爱好及学习者加入!

Warning: unserialize() expects parameter 1 to be string, array given in...

CMS 天狐 14120浏览 0评论

修改 _get_apps()方法
根据所指的警示路径找到你的uc_client/mondel/cache.php文件的第89行

  1. function _get_apps() {
  2.                 $this->base->load('app');
  3.                 $apps = $_ENV['app']->get_apps();
  4.                 $apps2 = array();
  5.                 if(is_array($apps)) {
  6.                         foreach($apps as $v) {
  7. //要替换部分
  8.                          if(!is_array($v['extra'])){
  9.                                $v['extra'] = unserialize($v['extra']);
  10.                                 }
  11.                          $apps2[$v['appid']] = $v;
  12.                         }
  13.                 }
  14.                 return $apps2;
  15.         }

转载请注明:天狐博客 » Warning: unserialize() expects parameter 1 to be string, array given in...

微信 OR 支付宝 扫描二维码
为天狐 打赏
非常感谢你的支持,哥会继续努力!
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址