ecshop 整合ucenter 遇到的问题

在ecshop 2.7.2整合ucenter之后ec用户能同步登陆到dz但是 uc_server始终显示通信失败,并且 dz登陆 退出状态不能同步到ec。

观察发现ec的页面上有以下报错

Strict Standards: Declaration of ucenter::login() should be compatible with integrate::login($username, $password, $remember = NULL) in D:xampphtdocsecshopincludesmodulesintegratesucenter.php on line 52

Strict Standards: Declaration of ucenter::add_user() should be compatible with integrate::add_user($username, $password, $email, $gender = -1, $bday = 0, $reg_date = 0, $md5password = ”) in D:xampphtdocsecshopincludesmodulesintegratesucenter.php on line 52

Strict Standards: Declaration of ucenter::set_cookie() should be compatible with integrate::set_cookie($username = ”, $remember = NULL) in D:xampphtdocsecshopincludesmodulesintegratesucenter.php on line 52

原来是ecshop中 /includes/modules/initgrates/ucenter.php中继承 /includes/modules/initgrates/initgrate.php重写方法时候参数不统一,只需同步这几个函数的参数定义方式即可

如果ucenter退出,而其他同步的应用没有退出可以看看如下的方案

在ecshop的/includes/lib_common.php

这里的

function uc_call

$res = call_user_func_array( $func, $params );

出错了

替换成这样 ,就可以了

if( !is_array($params)){

$res = call_user_func( $func, $params );

}else{

$res = call_user_func_array( $func, $params );

}

或者直接把$params转换成数组

则在

$res = call_user_func_array($func,$params);

前面加上

if(!$params) {

$params = array();

}

即可

[via]

评论

Popular Posts

《活法》作者:[日]稻盛和夫 pdf下载

Virtual Router - 让电脑成为WIFI热点共享上网的开源软件

浩方对战平台优化版 V2.05 部分去除浩方广告和弹出窗口

MIFARE Classic Tool - 安卓NFC门禁卡修改工具

整理RackNerd VPS促销活动机型表格

利用cgroup对docker进行全局资源限制(CPU, 内存, IO读写等限制)

麦当劳免费Wifi帐号密码及连接设置

搞懂并自主搭建ChatGPT的Reverse代理

中兴ZTE H618B 路由器固件刷机备忘

MD大战略2 德国闪击战 中文汉化版