我在做asp,aspx等非php產(chǎn)品跟php的dz整合時(shí),出現(xiàn)一處產(chǎn)品整合Bug,如果未涉及此類問題請(qǐng)不必讀下文.
雖然支持 uc.php的更名但是 代碼中并未支持到其他擴(kuò)展名
1 foreach($this->cache['apps'] as $appid => $app) {
2 if($app['synlogin'] && $app['appid'] != $this->app['appid']) {
3 $synstr .= '<script type="text/javascript" src="'.$app['url'].'/api/uc.php?time='.$this->time.'&code='.urlencode($this->authcode('action=synlogin&username='.$this->user['username'].'&uid='.$this->user['uid'].'&password='.$this->user['password']."&time=".$this->time, 'ENCODE', $app['authkey'])).'" reload="1"></script>';
因此,此處為Bug應(yīng)修正為

control/user.php onsynlogin函數(shù)
1 foreach($this->cache['apps'] as $appid => $app) {
2 $apifilename = isset($app['apifilename']) && $app['apifilename'] ? $app['apifilename'] : 'uc.php';
3 if($app['synlogin'] && $app['appid'] != $this->app['appid']) {
4 $synstr .= '<script type="text/javascript" src="'.$app['url'].'/api/'.$apifilename.'?time='.$this->time.'&code='.urlencode($this->authcode('action=synlogin&username='.$this->user['username'].'&uid='.$this->user['uid'].'&password='.$this->user['password']."&time=".$this->time, 'ENCODE', $app['authkey'])).'"></script>';
在其他整合函數(shù)中也存在類似問題.