|
@@ -463,14 +463,13 @@ class API extends AbstractAPI
|
|
|
|
|
|
protected function request2($api, array $params, $method = 'post', array $options = [], $returnResponse = false)
|
|
|
{
|
|
|
- $params = array_merge($params);
|
|
|
|
|
|
$params['mch_appid'] = $this->merchant->app_id;
|
|
|
$params['mchid'] = $this->merchant->merchant_id;
|
|
|
$params['nonce_str'] = uniqid();
|
|
|
$params = array_filter($params);
|
|
|
|
|
|
- $params['sign'] = generate_sign($params, $this->getSignkey($api), 'sha25');
|
|
|
+ $params['sign'] = generate_sign($params, $this->getSignkey($api), 'md5');
|
|
|
|
|
|
$options = array_merge([
|
|
|
'body' => XML::build($params),
|