Authored by hf

do add union codes

@@ -871,7 +871,7 @@ class HomeController extends AbstractAction @@ -871,7 +871,7 @@ class HomeController extends AbstractAction
871 $order = WxPayApi::unifiedOrder($input); 871 $order = WxPayApi::unifiedOrder($input);
872 $jsApiParameters = $tools->GetJsApiParameters($order); 872 $jsApiParameters = $tools->GetJsApiParameters($order);
873 873
874 - $this->echoJson(array('code' => 200, 'data' => array('jsApiParameters' => $jsApiParameters))); 874 + $this->echoJson(array('code' => 200, 'data' => array('jsApiParameters' => json_decode($jsApiParameters) )) );
875 875
876 } while (false); 876 } while (false);
877 } 877 }