Showing
1 changed file
with
1 additions
and
6 deletions
@@ -529,12 +529,7 @@ class HomeController extends AbstractAction | @@ -529,12 +529,7 @@ class HomeController extends AbstractAction | ||
529 | $yh_channel = $this->get('yh_channel', 1); | 529 | $yh_channel = $this->get('yh_channel', 1); |
530 | $method = 'app.SpaceOrders.close'; | 530 | $method = 'app.SpaceOrders.close'; |
531 | $data = OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method); | 531 | $data = OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method); |
532 | - if ($data['code'] == 200) { | ||
533 | - $arr = array(); | ||
534 | - $arr['code'] = $data['code']; | ||
535 | - $arr['message'] = $data['message']; | ||
536 | - echo json_encode($arr); | ||
537 | - } | 532 | + $this->echoJson($data); |
538 | } | 533 | } |
539 | 534 | ||
540 | /* | 535 | /* |
-
Please register or login to post a comment