|
|
BUG反饋
| 程序版本: |
X3.5 |
| 瀏覽器: |
Chrome |
| BUG地址: |
隱藏內(nèi)容 |
| BUG截圖: |
- |
| 測(cè)試用戶名: |
隱藏內(nèi)容 |
| 測(cè)試密碼: |
隱藏內(nèi)容 |
showmessage('請(qǐng)選擇正確的操作', '', array(), array('showdialog' => 0, 'showmsg' => true));
原想:通過以上函數(shù)提示用戶操作出問題,頁(yè)面不跳轉(zhuǎn),
沒有帶參數(shù) 'locationtime'=>true 結(jié)果還是跳轉(zhuǎn)了,跟蹤代碼發(fā)現(xiàn)以上函數(shù)調(diào)用的是 function_message.php的
函數(shù) 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,
- );
復(fù)制代碼
雖然后面有
- if($param['locationtime'] !== null) {
- $param['locationtime'] = $param['locationtime'] === true ? $timedefault : $param['locationtime'];
- }
復(fù)制代碼
據(jù)測(cè)試(php 7.4)這個(gè)條件一直是成立的,也就是一定會(huì)進(jìn)入,給賦值頁(yè)面刷新的時(shí)間。
請(qǐng)查一下是不是一個(gè)Bug
我知道答案
回答被采納將會(huì)獲得 1 貢獻(xiàn) 已有1人回答
|
|