Skip to content

Commit

Permalink
Update API.php (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin8212 authored and overtrue committed Jul 14, 2016
1 parent 5477de6 commit 06addb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Payment/LuckyMoney/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public function send(array $params, $type = self::TYPE_NORMAL)
$api = ($type === self::TYPE_NORMAL) ? self::API_SEND : self::API_SEND_GROUP;

$params['wxappid'] = $this->merchant->app_id;

//如果类型为分裂红则去掉client_ip参数,否则签名会出错
if ($type == self::TYPE_GROUP) {
unset($params['client_ip']);
}
return $this->request($api, $params);
}

Expand Down

0 comments on commit 06addb0

Please sign in to comment.