主要思路,去掉ajaxpost提交,改成正常的POST方式:
1、修改文件template/default/home/spacecp_credit_base.htm
找到
<form id="addfundsform" name="addfundsform" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=credit&op=buy" οnsubmit="ajaxpost(this.id, 'return_addfundsform');">
修改成
<form id="addfundsform" name="addfundsform" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=credit&op=buy">
2、修改文件
source/include/spacecp/spacecp_credit_base.php
找到
include template('common/header_ajax');
echo '<form id="payform" action="'.$requesturl.'" method="post"></form><script type="text/JavaScript" reload="1">$('payform').submit();</script>';
include template('common/footer_ajax');
dexit();
修改成
echo '<script type="text/javascript">window.location.href = "'.$requesturl.'";</script>';
dexit();
修改完文件,后台更新缓存,就生效了!