Showing
2 changed files
with
2 additions
and
2 deletions
@@ -192,7 +192,7 @@ function buyAgain(id){ | @@ -192,7 +192,7 @@ function buyAgain(id){ | ||
192 | data: {orderCode: id} | 192 | data: {orderCode: id} |
193 | }).then(function(d) { | 193 | }).then(function(d) { |
194 | if (d.code === 200) { | 194 | if (d.code === 200) { |
195 | - location.href = ''; | 195 | + location.href = '/shopping/cart'; |
196 | } else { | 196 | } else { |
197 | new dialog.Alert(d.message).show(); | 197 | new dialog.Alert(d.message).show(); |
198 | } | 198 | } |
@@ -283,7 +283,7 @@ class OrdersController extends WebAction | @@ -283,7 +283,7 @@ class OrdersController extends WebAction | ||
283 | } | 283 | } |
284 | //获取相关参数 | 284 | //获取相关参数 |
285 | $uid = $this->getUid(true); | 285 | $uid = $this->getUid(true); |
286 | - $orderCode = $this->get('orderCode', ''); | 286 | + $orderCode = $this->post('orderCode', ''); |
287 | if (!$uid || !$orderCode) { | 287 | if (!$uid || !$orderCode) { |
288 | $result = array('code' => 400, 'message' => '缺失参数', 'data' => ''); | 288 | $result = array('code' => 400, 'message' => '缺失参数', 'data' => ''); |
289 | break; | 289 | break; |
-
Please register or login to post a comment