code review by fei.hong : modify alipay and weixin pay notice url
Showing
3 changed files
with
13 additions
and
2 deletions
@@ -372,6 +372,16 @@ server | @@ -372,6 +372,16 @@ server | ||
372 | proxy_set_header Accept-Encoding "gzip"; | 372 | proxy_set_header Accept-Encoding "gzip"; |
373 | } | 373 | } |
374 | 374 | ||
375 | + ## since 2016/01/23 | ||
376 | + location ^~ /shopping/pay/alipay { | ||
377 | + proxy_redirect off; | ||
378 | + proxy_pass http://yohobuy; | ||
379 | + proxy_set_header Host $host; | ||
380 | + proxy_set_header X-Real-IP $remote_addr; | ||
381 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
382 | + proxy_set_header Accept-Encoding "gzip"; | ||
383 | + } | ||
384 | + | ||
375 | location / { | 385 | location / { |
376 | proxy_redirect off; | 386 | proxy_redirect off; |
377 | proxy_pass http://119.254.81.245; | 387 | proxy_pass http://119.254.81.245; |
@@ -828,7 +828,7 @@ class HomeController extends AbstractAction | @@ -828,7 +828,7 @@ class HomeController extends AbstractAction | ||
828 | 'payAppInfo' => array( | 828 | 'payAppInfo' => array( |
829 | 0 => array( | 829 | 0 => array( |
830 | 'appIcon' => '', | 830 | 'appIcon' => '', |
831 | - 'payLink' => Helpers::url('/shopping/pay/index', array('order_code' => $orderCode, 'payment_type' => 18)), | 831 | + 'payLink' => Helpers::url('/shopping/pay/alipay', array('order_code' => $orderCode, 'payment_type' => 18)), |
832 | 'appId' => 'alipay', | 832 | 'appId' => 'alipay', |
833 | 'app' => '支付宝支付', | 833 | 'app' => '支付宝支付', |
834 | 'hint' => '支付宝钱包支付', | 834 | 'hint' => '支付宝钱包支付', |
@@ -38,6 +38,7 @@ class PayController extends AbstractAction | @@ -38,6 +38,7 @@ class PayController extends AbstractAction | ||
38 | /* 判断用户是否登录 */ | 38 | /* 判断用户是否登录 */ |
39 | $uid = $this->getUid(true); | 39 | $uid = $this->getUid(true); |
40 | if (!$uid) { | 40 | if (!$uid) { |
41 | + $this->go( Helpers::url('/signin.html', array('refer' => $this->_request->server('HTTP_REFERER'))) ); | ||
41 | break; | 42 | break; |
42 | } | 43 | } |
43 | 44 | ||
@@ -67,13 +68,13 @@ class PayController extends AbstractAction | @@ -67,13 +68,13 @@ class PayController extends AbstractAction | ||
67 | // 此处是咨询过JAVA开发任明明,按照老代码的实现方式判断,更新支付方式 | 68 | // 此处是咨询过JAVA开发任明明,按照老代码的实现方式判断,更新支付方式 |
68 | $paymentRecod = OrderData::updateOrderPayment($orderCode, 2, $uid); | 69 | $paymentRecod = OrderData::updateOrderPayment($orderCode, 2, $uid); |
69 | if (empty($paymentRecod) || $paymentRecod['code'] != 200) { | 70 | if (empty($paymentRecod) || $paymentRecod['code'] != 200) { |
71 | + $this->helpJsRedirect('系统繁忙,请稍后再试'); | ||
70 | break; | 72 | break; |
71 | } | 73 | } |
72 | 74 | ||
73 | $this->go($payRequestPars['pay_url'] . $payRequestPars['pars']); | 75 | $this->go($payRequestPars['pay_url'] . $payRequestPars['pars']); |
74 | } | 76 | } |
75 | while (false); | 77 | while (false); |
76 | - echo 'dd'; | ||
77 | } | 78 | } |
78 | 79 | ||
79 | /** | 80 | /** |
-
Please register or login to post a comment