Skip to content

Commit

Permalink
Merge pull request #40 from gaobinzhan/master
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Player626 authored Nov 25, 2020
2 parents 7a5c450 + e6df1a7 commit f1a0964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WeChat/WeChatPay/MiniProgram.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class MiniProgram extends AbstractPayBase
*/
public function pay(Base $bean): MiniProgramResponse
{
$appId = $bean->getSubAppid() ? $this->config->getMiniAppId() : null;
if ($appId === null) {
$appId = $bean->getSubAppid() ? $bean->getSubAppid() : $this->config->getMiniAppId();
if (!$appId) {
throw new InvalidConfigException('appId not exist');
}

Expand Down

0 comments on commit f1a0964

Please sign in to comment.