Commit 32366972 by yeran

fix: update

1 parent 4528a002
{
"name": "ldy/payment",
"type": "library",
"version": "3.4.2",
"version": "3.4.3",
"description": "支付宝支付、微信支付、招商一网通支付、通联支付、米付支付、利楚扫呗、富友支付、联拓付、易生支付、银盛支付 php SDK。",
"keywords": ["alipay", "weixin", "支付宝支付", "微信支付","通联支付", "集成支付接口SDK", "招商一网通", "一网通", "利楚扫呗", "富友支付"],
"homepage": "",
......
......@@ -67,6 +67,9 @@ class LiteChargeData extends ChargeBaseData
if(isset($this->attach)){
$signData['attach'] = $this->attach;
}
if(!empty($this->coupon_credential)){
$signData['coupon_credential'] = $this->coupon_credential;
}
if(!empty($this->goods_tag)){
$signData['goods_tag'] = $this->goods_tag;
}
......
......@@ -29,7 +29,7 @@ class LiteChargeData extends ChargeBaseData
throw new PayException('用户标识(微信openid),需要传入,通过微信官方接口获得');
}
}
$this->pay_ver = '201';
$this->service_id = '015';
}
......@@ -68,6 +68,18 @@ class LiteChargeData extends ChargeBaseData
if(isset($this->attach)){
$signData['attach'] = $this->attach;
}
if(!empty($this->coupon_credential)){
$signData['coupon_credential'] = $this->coupon_credential;
}
if(!empty($this->goods_tag)){
$signData['goods_tag'] = $this->goods_tag;
}
if(!empty($this->goods_detail)){
$signData['goods_detail'] = $this->goods_detail;
}
if(!empty($this->food_order_type)){
$signData['food_order_type'] = $this->food_order_type;
}
// 移除数组中的空值
$this->retData = ArrayUtil::paraFilter($signData);
}
......
......@@ -9,7 +9,7 @@ final class SwThreeConfig extends ConfigInterface
{
public $signType = 'MD5';
public $pay_ver = 201;//版本号,当前版本100
public $pay_ver = 201;//版本号,当前版本201
public $pay_type;//请求类型,010微信,020支付宝,060qq钱包,090口碑,100翼支付
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!