Authored by hf

fixes some bugs to weixin pay

... ... @@ -841,7 +841,8 @@ class HomeController extends AbstractAction
$result['data'] = isset($result['data']['prePayData']) ? $result['data']['prePayData'] : array();
$result['data']['appId'] = 'wx049fdaa3ba9cdd7a'; //'wx75e5a7c0c88e45c2';
$result['data']['signType'] = 'MD5';
$result['data']['paySign'] = isset($result['data']['sign']) ? $result['data']['sign'] : '';
$result['data']['package'] = 'prepay_id=' . isset($result['data']['prepayId']) ? $result['data']['prepayId'] : '';
$result['data']['paySign'] = isset($result['data']['sign']) ? strtolower($result['data']['sign']) : '';
$this->echoJson(array('code' => 200, 'data' => array('jsApiParameters' => $result['data'])) );
}
... ...