此页面由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 /vhosts/hosts/travelzs/private/shortURL/index.php(29): helper\link->validKey('')
#1 [internal function]: shortURL\index->indexAction()
#2 /vhosts/hosts/Qii/src/Base/Dispatcher.php(161): call_user_func_array(Array, Array)
#3 /vhosts/hosts/Qii/src/Application.php(558): Qii\Base\Dispatcher->dispatch()
#4 /vhosts/hosts/travelzs/public/index.php(27): Qii\Application->run()
#5 {main}
Source URL:http://trzol.com/
Referer URL:http://trzol.com/