本帖最后由 darwinwen 于 2011-9-19 15:53 编辑
查看源代码实际是根据uniqueId来检测.
api/manyou/Manyou.php
- class Discuz_Cloud_Client {
- function register() {
- $data = $this->Client->register($this->siteName, $this->uniqueId, $this->siteUrl, $this->charset,
- $this->timeZone, $this->UCenterUrl, $this->language,
- $this->productType, $this->productVersion,
- $this->timestamp, $this->apiVersion, $this->siteUid, $this->productRelease);
- $this->errno = $this->Client->errno;
- $this->errmsg = $this->Client->errmsg;
- return $data;
- }
- }
复制代码- class Cloud_Client {
- function Cloud_Client($sId = 0, $sKey = '') {
- $this->sId = intval($sId);
- $this->sKey = $sKey;
- $this->url = 'http://api.discuz.qq.com/site.php';
- $this->format = 'php';
- $this->ts = time();
- }
- function register($sName, $sSiteKey, $sUrl, $sCharset,
- $sTimeZone, $sUCenterUrl, $sLanguage,
- $sProductType, $sProductVersion,
- $sTimestamp, $sApiVersion, $sSiteUid, $sProductRelease) {
- return $this->_callMethod('site.register', array('sName' => $sName,
- 'sSiteKey' => $sSiteKey,
- 'sUrl' => $sUrl,
- 'sCharset' => $sCharset,
- 'sTimeZone' => $sTimeZone,
- 'sUCenterUrl' => $sUCenterUrl,
- 'sLanguage' => $sLanguage,
- 'sProductType' => $sProductType,
- 'sProductVersion' => $sProductVersion,
- 'sTimestamp' => $sTimestamp,
- 'sApiVersion' => $sApiVersion,
- 'sSiteUid' => $sSiteUid,
- 'sProductRelease' => $sProductRelease
- )
- );
- }
- }
复制代码
所以每次通过dfsockopen函数远程调用site.register方法, 两个网站都会返回相同的信息,在诊断工具里面删除ID之后,检测始终返回错误代码为[errCode] => 116,不管在那个网站关闭,两个站云平台同时关闭,开启也一样。
- Array ( [errCode] => 116 [errMessage] => 站点 Url 重复注册。您可以先:
- 1. 下载修复文件
- 2.上传至DISCUZX安装目录
- 3.访问http://www.changktv.com/bbs/cloud_aef82e3644f001050b031afa4bbf115a.php
复制代码
郁闷,为什么不加上网站url同时检测呢?
|