-
Notifications
You must be signed in to change notification settings - Fork 254
统一文档和测试用例中的变量命名 #142
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
统一文档和测试用例中的变量命名 #142
Conversation
d0cf0aa
to
caaf852
Compare
README.md
Outdated
@@ -169,32 +169,32 @@ import com.wechat.pay.contrib.apache.httpclient.WechatPayHttpClientBuilder; | |||
import com.wechat.pay.contrib.apache.httpclient.Credentials; | |||
|
|||
// ... | |||
Credentials credentials = new WechatPay2Credentials(merchantId, new Signer() { | |||
Credentials credentials = new WechatPay2Credentials(mchId, new Signer() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该是用 merchantId
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
README.md
Outdated
@@ -73,7 +73,7 @@ CloseableHttpResponse response = httpClient.execute(...); | |||
+ `merchantId`商户号。 | |||
+ `merchantSerialNumber`商户API证书的证书序列号。 | |||
+ `merchantPrivateKey`商户API私钥,如何加载商户API私钥请看[常见问题](#如何加载商户私钥)。 | |||
+ `wechatpayCertificates`微信支付平台证书。你也可以使用后面章节提到的“[定时更新平台证书功能](#定时更新平台证书功能)”,而不需要关心平台证书的来龙去脉。 | |||
+ `wechatPayCertList`微信支付平台证书列表。你也可以使用后面章节提到的“[定时更新平台证书功能](#定时更新平台证书功能)”,而不需要关心平台证书的来龙去脉。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wechatPayCertificateList
避免缩写吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
README.md
Outdated
@@ -169,32 +169,32 @@ import com.wechat.pay.contrib.apache.httpclient.WechatPayHttpClientBuilder; | |||
import com.wechat.pay.contrib.apache.httpclient.Credentials; | |||
|
|||
// ... | |||
Credentials credentials = new WechatPay2Credentials(merchantId, new Signer() { | |||
Credentials credentials = new WechatPay2Credentials(mchId, new Signer() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mchId → merchantId
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
README.md
Outdated
@Override | ||
public Signer.SignatureResult sign(byte[] message) { | ||
// ... call your sign-RPC, then return sign & serial number | ||
} | ||
}); | ||
WechatPayHttpClientBuilder builder = WechatPayHttpClientBuilder.create() | ||
.withCredentials(credentials) | ||
.withWechatPay(wechatpayCertificates); | ||
.withWechatPay(wechatPayCertList); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wechatPayCertList → wechatpayCertificateList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改,就用原来的吧,一样的意思
No description provided.