Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新 #240

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
[![Monthly installs][ico-downloads-monthly]][link-downloads]

-----
test!

# JetBrains OS licenses

`payment` had been being developed with PhpStorm under the free JetBrains Open Source license(s) granted by JetBrains s.r.o., hence I would like to express by thanks here.

Expand Down
10 changes: 1 addition & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"name": "riverslei/payment",
"name": "521daichen/payment",
"type": "library",
"description": "支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入,最完整的开源支付 php sdk",
"keywords": ["alipay", "weixin", "支付宝支付", "微信支付", "集成支付接口SDK", "招商一网通", "一网通"],
"homepage": "https://helei112g.github.io/categories/payment-3/",
"license": "MIT",
"authors": [
{
"name": "helei",
"email": "[email protected]",
"homepage": "https://helei112g.github.io/categories/payment-3/"
}
],
"require": {
"php": ">=5.6",
"ext-bcmath": "*",
Expand Down
6 changes: 3 additions & 3 deletions src/Common/Weixin/Data/Charge/PubChargeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ protected function checkDataParam()

$subMchId = $this->sub_mch_id;// 如果是服务商模式,则 sub_openid 必须提供
$subOpenid = $this->sub_openid;
if ($subMchId && empty($subOpenid)) {
throw new PayException('公众号的服务商模式,必须提供 sub_openid 参数.');
}
// if ($subMchId && empty($subOpenid)) {
// throw new PayException('公众号的服务商模式,必须提供 sub_openid 参数.');
// }
}

protected function buildData()
Expand Down