修改ThinkPHP\Library\Think\Page.class文件:
把:
- return str_replace(urlencode('[PAGE]'), $page, $this->url);
- return str_replace('[PAGE]', $page, $this->url);
把:
- $this->url = U(ACTION_NAME, $this->parameter);
- $paramStr="";
- foreach($this->parameter as $key => $value){
- $paramStr = $paramStr.'&'.$key.'='.$value;
- }
- $paramStr = substr($paramStr,1,strlen($paramStr));
- $this->url = U(ACTION_NAME).(strpos(U(),"?")?'&':'?').$paramStr;