AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK
| Server IP : dzynews.com / Your IP : 216.73.217.105 Web Server : nginx/1.30.3 System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 User : www ( 1000) PHP Version : 8.2.31 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/dzynews.com/wp-content/themes/archive-document/Pages/ |
Upload File : |
<?php
use B2\Modules\Common\Pay;
get_header();
$data = isset($_GET) ? $_GET : array();
$token = isset($_GET['token']) ? $_GET['token'] : '';
?>
<div class="social-box empty-page" id="pay-page" ref="payPage" data-pay='<?php echo json_encode($data,true); ?>' data-token="<?php echo $token; ?>">
<div>
<?php if(!$token){ ?>
<div id="order-loading" v-if="!token && !error" v-cloak>
<h2><?php echo __('....订单创建中....','b2'); ?></h2>
<div class="b2-loading button text empty social-loading"></div>
</div>
<div v-if="error">
<h2 v-text="error"></h2>
</div>
<div v-else-if="token" v-cloak>
<h2><?php echo __('....订单创建成功,数据交换中....','b2'); ?></h2>
<!-- <div class="b2-loading button text empty social-loading"></div> -->
<div class="order-paybutton"><a :href="payUrl" class="button"><?php echo __('前往支付','b2'); ?></a></div>
</div>
<?php }
if($token){
?>
<div id="order-pay">
<h2><?php echo __('....支付跳转中....','b2'); ?></h2>
<div class="b2-loading button text empty social-loading"></div>
</div>
<?php
$pay = Pay::pay($token);
if(isset($pay['error'])){
echo '
<h2>'.$pay['error'].'<h2>
<script>
document.querySelector("#order-pay").remove();
</script>
';
}else{
echo $pay;
}
} ?>
</div>
</div>
<?php
get_footer();