Authored by 郭成尧

Merge branch 'feature/ordrEnsurOptmz' into release/5.3

@@ -833,8 +833,8 @@ class CartModel @@ -833,8 +833,8 @@ class CartModel
833 } 833 }
834 834
835 $result['message'] = array( 835 $result['message'] = array(
836 - $orderSubRes['data']['hintInfo']['productName'] . $orderSubRes['data']['hintInfo']['suffix'],  
837 - $orderSubRes['data']['hintInfo']['lastLine'] 836 + urlencode($orderSubRes['data']['hintInfo']['productName'] . $orderSubRes['data']['hintInfo']['suffix']),
  837 + urlencode($orderSubRes['data']['hintInfo']['lastLine'])
838 ); 838 );
839 } 839 }
840 840
@@ -696,8 +696,15 @@ class IndexController extends AbstractAction @@ -696,8 +696,15 @@ class IndexController extends AbstractAction
696 // 提交成功清除Cookie 696 // 提交成功清除Cookie
697 $this->setCookie('order-info', null); 697 $this->setCookie('order-info', null);
698 698
  699 + if ($result['code'] === 409) {
  700 + headers_sent() || header('Content-Type: application/json; charset=utf-8;');
  701 + $result = json_encode($result);
  702 + echo urldecode($result);
  703 + exit;
  704 + } else {
699 $this->echoJson($result); 705 $this->echoJson($result);
700 } 706 }
  707 + }
701 } else { 708 } else {
702 echo ' '; 709 echo ' ';
703 } 710 }