Beispiel #1
0
 /**
  * 支付回调
  */
 public function returnOp()
 {
     unset($_GET['act']);
     unset($_GET['op']);
     unset($_GET['payment_code']);
     $payment_api = $this->_get_payment_api();
     $payment_config = $this->_get_payment_config();
     $callback_info = $payment_api->getReturnInfo($payment_config);
     if ($callback_info) {
         //验证成功
         $result = $this->_update_order($callback_info['out_trade_no'], $callback_info['trade_no']);
         if ($result['state']) {
             Tpl::output('result', 'success');
             Tpl::output('message', '支付成功');
         } else {
             Tpl::output('result', 'fail');
             Tpl::output('message', '支付失败');
         }
     } else {
         //验证失败
         Tpl::output('result', 'fail');
         Tpl::output('message', '支付失败');
     }
     Tpl::showpage('payment_message');
 }
Beispiel #2
0
<br />
  <?php 
echo html_entity_decode($output['setting_config']['statistics_code'], ENT_QUOTES);
?>
 </div>
<?php 
if (C('debug') == 1) {
    ?>
<div id="think_page_trace" class="trace">
  <fieldset id="querybox">
    <legend><?php 
    echo $lang['nc_debug_trace_title'];
    ?>
</legend>
    <div>
      <?php 
    print_r(\WrzcNet\Tpl::showTrace());
    ?>
    </div>
  </fieldset>
</div>
<?php 
}
?>
<script type="text/javascript" src="<?php 
echo RESOURCE_SITE_URL;
?>
/js/jquery.cookie.js"></script>
</body>
</html>