|
BUG反饋
程序版本: |
X3.5 |
瀏覽器: |
Chrome |
BUG地址: |
隱藏內容 |
BUG截圖: |
- |
測試用戶名: |
隱藏內容 |
測試密碼: |
隱藏內容 |
showmessage('請選擇正確的操作', '', array(), array('showdialog' => 0, 'showmsg' => true));
原想:通過以上函數提示用戶操作出問題,頁面不跳轉,
沒有帶參數 'locationtime'=>true 結果還是跳轉了,跟蹤代碼發現以上函數調用的是 function_message.php的
函數 function dshowmessage($message, $url_forward = '', $values = array(), $extraparam = array(), $custom = 0)
- $param = array(
- 'header' => false,
- 'timeout' => null,
- 'refreshtime' => null,
- 'closetime' => null,
- 'locationtime' => null,
- 'alert' => null,
- 'return' => false,
- 'redirectmsg' => 0,
- 'msgtype' => 1,
- 'showmsg' => true,
- 'showdialog' => false,
- 'login' => false,
- 'handle' => false,
- 'extrajs' => '',
- 'striptags' => true,
- );
復制代碼
雖然后面有
- if($param['locationtime'] !== null) {
- $param['locationtime'] = $param['locationtime'] === true ? $timedefault : $param['locationtime'];
- }
復制代碼
據測試(php 7.4)這個條件一直是成立的,也就是一定會進入,給賦值頁面刷新的時間。
請查一下是不是一個Bug
我知道答案
回答被采納將會獲得 1 貢獻 已有1人回答
|
|