此页面由Qii自动生成
错误文件 :../../../../private/helper/link.php
错误代码 :0
错误描述 :Invalid param key
错误行 :112 on 102: $realID = base_convert($id, $this->destHex, $this->sourceHex);
103:
104: return $realID - $this->baseId;
105: }
106: /**
107: * 验证生成的字符串是否正确
108: */
109: public function validKey($key)
110: {
111: if(!$key) {
112: throw new \Exception('Invalid param key');
113: }
114: $sign = substr($key, -1 * $this->signLength);
115:
116: $id = $this->getId($key) + $this->baseId;
117:
118: if(substr(md5($this->privateKey . $id), 10, $this->signLength) == $sign) {
119: return true;
120: }
121: return false;
122: }
错误追踪如下:
#0 /www/wwwroot/phpWeb/travelzs.com/private/shortURL/free.php(20): helper\link->validKey()
#1 /www/wwwroot/phpWeb/travelzs.com/private/shortURL/free.php(64): shortURL\free->indexAction()
#2 /www/wwwroot/phpWeb/qii/src/Base/Dispatcher.php(103): shortURL\free->__call()
#3 /www/wwwroot/phpWeb/qii/src/Application.php(619): Qii\Base\Dispatcher->dispatch()
#4 /www/wwwroot/phpWeb/travelzs.com/public/index.php(27): Qii\Application->run()
#5 {main}
Source URL:http://trzol.cn/
Referer URL:http://trzol.cn/