97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里
Discuz! 官方交流社區(qū)
標(biāo)題:
UCenter同步問(wèn)題無(wú)法將會(huì)員數(shù)據(jù)通道dzx3.5
[打印本頁(yè)]
作者:
科聯(lián)工作室
時(shí)間:
2023-12-28 13:53
標(biāo)題:
UCenter同步問(wèn)題無(wú)法將會(huì)員數(shù)據(jù)通道dzx3.5
目前有:
網(wǎng)站A:dzx3.5論壇,用戶(hù)1100
UCenter在網(wǎng)站A根目錄,先稱(chēng)之為UC,用戶(hù)數(shù)據(jù)與網(wǎng)站A同步1100
現(xiàn)在使用原生php做了一個(gè)站點(diǎn)H,想實(shí)現(xiàn)在站點(diǎn)H登陸后同步登陸到網(wǎng)站A(已將UC會(huì)員數(shù)據(jù)導(dǎo)入至站點(diǎn)H),目前登陸和退出都已經(jīng)實(shí)現(xiàn)同步,但是站點(diǎn)H注冊(cè)的時(shí)候只能將數(shù)據(jù)同步到UC,網(wǎng)站A沒(méi)有同步過(guò)去,導(dǎo)致無(wú)法實(shí)現(xiàn)同步。
就是這樣的原理還是我代碼寫(xiě)的問(wèn)題?因?yàn)橐呀?jīng)同步到了UC,代碼應(yīng)該沒(méi)問(wèn)題,想不出哪里出了問(wèn)題,請(qǐng)大神解答一下
作者:
科聯(lián)工作室
時(shí)間:
2023-12-28 15:05
問(wèn)題補(bǔ)充,之前一直是dz3.4 GBK版本,對(duì)接前惡意升級(jí)到了DZ3.5 UTF8,沒(méi)有出現(xiàn)什么報(bào)錯(cuò)和故障,對(duì)接時(shí)發(fā)現(xiàn)UCenter后臺(tái)應(yīng)用管理,只有
是否開(kāi)啟同步登錄:
、
是否接受通知:
能用,下邊的都無(wú)法使用,無(wú)論選擇是還是否,保存以后還是空的,我印象中UCenter1.6好像沒(méi)有這么選項(xiàng)(記不清了,可能是我記錯(cuò)了),不排除是升級(jí)時(shí)沒(méi)有相關(guān)字段導(dǎo)致。
作者:
科聯(lián)工作室
時(shí)間:
2023-12-29 02:22
DZX自動(dòng)激活方法:
打開(kāi)discuz/
api/uc.php,然后找到:
if (($member = getuserbyuid($uid, 1))) {
dsetcookie('auth', authcode("$member[password]\t$member[uid]", 'ENCODE'), $cookietime);
}
復(fù)制代碼
替換為:
if (($member = getuserbyuid($uid, 1))) {
dsetcookie('auth', authcode("$member[password]\t$member[uid]", 'ENCODE'), $cookietime);
} else {
if (!function_exists('uc_get_user')) {
loaducenter();
}
$user = uc_get_user($uid, 1);
if ($user) {
$time = time();
DB::query("REPLACE INTO " . DB::table('common_member') . " SET `uid`='{$user[0]}' , `username`='{$user[1]}' , `password`='" . md5(random(10)) . "' , `email`='{$user[2]}' , `adminid`='0' , `groupid`='10' , `regdate`='{$time}' , `emailstatus`='0' , `credits`='0' , `timeoffset`='9999'");
DB::query("REPLACE INTO " . DB::table('common_member_status') . " SET `uid`='{$user[0]}' , `regip`='{$_G['clientip']}' , `lastip`='{$_G['clientip']}' , `lastvisit`='{$time}' , `lastactivity`='' , `lastpost`='0' , `lastsendmail`='0'");
DB::query("REPLACE INTO " . DB::table('common_member_count') . " SET `uid`='{$user[0]}' , `extcredits1`='0' , `extcredits2`='0' , `extcredits3`='0' , `extcredits4`='0' , `extcredits5`='0' , `extcredits6`='0' , `extcredits7`='0' , `extcredits8`='0'");
DB::query("REPLACE INTO " . DB::table('common_member_profile') . " SET `uid`='{$user[0]}'");
DB::query("REPLACE INTO " . DB::table('common_member_field_forum') . " SET `uid`='{$user[0]}'");
DB::query("REPLACE INTO " . DB::table('common_member_field_home') . " SET `uid`='{$user[0]}'");
DB::query("UPDATE " . DB::table('common_stat') . " SET `register`=`register`+1 WHERE `daytime` = '" . date('Ymd', $time) . "'");
if (($member = getuserbyuid($uid, 1))) {
dsetcookie('auth', authcode("$member[password]\t$member[uid]", 'ENCODE'), $cookietime);
}
}
}
復(fù)制代碼
順利解決
歡迎光臨 Discuz! 官方交流社區(qū) (http://r615.cn/)
Powered by Discuz! X5.0