Authored by 郝肖肖

支付成功返回界面

@@ -23,18 +23,18 @@ class Yohobuy @@ -23,18 +23,18 @@ class Yohobuy
23 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 23 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
24 24
25 //java API 25 //java API
26 - const API_URL = 'http://api.yoho.yohoops.org/';  
27 - const API_URL2 = 'http://api.yoho.yohoops.org/';  
28 - const SERVICE_URL = 'http://service.yoho.yohoops.org/';  
29 - const YOHOBUY_URL = 'http://www.yohobuy.com/';  
30 - const API_OLD = 'http://api2.open.yohobuy.com/';  
31 - const SERVICE_NOTIFY = 'http://service.yoho.cn/'; 26 +// const API_URL = 'http://api.yoho.yohoops.org/';
  27 +// const API_URL2 = 'http://api.yoho.yohoops.org/';
  28 +// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
  29 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
  30 +// const API_OLD = 'http://api2.open.yohobuy.com/';
  31 +// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
32 32
33 // 测试环境 */ 33 // 测试环境 */
34 - /*const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' 34 + const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
35 const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; 35 const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
36 const YOHOBUY_URL = 'http://www.yohobuy.com/'; 36 const YOHOBUY_URL = 'http://www.yohobuy.com/';
37 - const SERVICE_NOTIFY = 'http://testapi.yoho.cn:28078/';*/ 37 + const SERVICE_NOTIFY = 'http://testapi.yoho.cn:28078/';
38 38
39 /* 预览环境 */ 39 /* 预览环境 */
40 // const API_URL = 'http://preapi.yoho.cn/'; 40 // const API_URL = 'http://preapi.yoho.cn/';
  1 +{{> layout/header}}
  2 +<div class="pay-back-page">
  3 + <div class="success-order">
  4 + <div class="success-order-info">
  5 + <div class="icon-right"><em class="icon-uni3D"></em></div>
  6 + <h2>您的订单已支付成功!</h2>
  7 + </div>
  8 + <div class="success-notice">
  9 + <span><em class="icon-uni21"></em></span>提示:请去成功订单查看订单详情。
  10 + </div>
  11 + <div class="success btn pt50">
  12 + <a href="/">继续逛</a>
  13 + <a href="/home/orders/detail?order_code=<?php echo $this->order_code; ?>">查看订单</a>
  14 + </div>
  15 + </div>
  16 +</div>
  17 +{{> layout/footer}}
  1 +{{> layout/header}}
  2 +<div class="pay-back-page">
  3 + <div class="order-failure">
  4 + <p>订单提交失败!</p>
  5 +
  6 + <div class="success-notice">
  7 + <span><em class="icon-uni21"></em></span>提示:支付失败
  8 + </div>
  9 + </div>
  10 +</div>
  11 +{{> layout/footer}}
@@ -87,7 +87,22 @@ class PayController extends AbstractAction @@ -87,7 +87,22 @@ class PayController extends AbstractAction
87 } 87 }
88 while (false); 88 while (false);
89 } 89 }
90 - 90 +
  91 + /**
  92 + * 支付成功回调页面
  93 + */
  94 + public function aliwapreturnAction()
  95 + {
  96 + $this->setTitle('支付中心');
  97 + $this->setNavHeader('支付中心', Helpers::url('/home/orders'), false);
  98 + $data = array(
  99 + 'payBackPage' => true,
  100 + 'pageFooter' => true
  101 + );
  102 + // 渲染模板
  103 + $this->_view->display('index', $data);
  104 + }
  105 +
91 /** 106 /**
92 * 微信支付 - 获取JSAPI参数 107 * 微信支付 - 获取JSAPI参数
93 * 108 *