提交 b399510b 编写于 作者: J Javen205

createSign 添加重构方法

上级 e8f60f22
......@@ -50,7 +50,19 @@ public class BaseModel {
* @return 构建签名后的 Map
*/
public Map<String, String> createSign(String partnerKey, SignType signType) {
return WxPayKit.buildSign(toMap(), partnerKey, signType);
return createSign(partnerKey,signType,true);
}
/**
* 构建签名 Map
*
* @param partnerKey API KEY
* @param signType {@link SignType} 签名类型
* @param haveSignType 签名是否包含 sign_type 字段
* @return 构建签名后的 Map
*/
public Map<String, String> createSign(String partnerKey, SignType signType, boolean haveSignType) {
return WxPayKit.buildSign(toMap(), partnerKey, signType,haveSignType);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册