Discuz! X2.5 積分充值成功、支付寶支付到賬,但返回資訊為 Access Denied,解決方案

支付寶充值後返回資訊 Access Denied ,可以透過下面方法進行修改。

找到檔案 source/class/discuz/discuz_application.php
查詢程式碼:

  1. $_GET['handlekey']= !empty($_GET['handlekey']) && preg_match('/^w+$/', $_GET['handlekey']) ? $_GET['handlekey'] : '';

改為:

  1. if(!(!empty($_GET['handlekey']) && preg_match('/^w+$/', $_GET['handlekey']))) {
  2.             unset($_GET['handlekey']);
  3. }