修改微信封装
This commit is contained in:
@@ -15,7 +15,6 @@ import org.jiayunet.tool.UserSecurityTool;
|
||||
import org.jiayunet.wxPay.WxNativePayAbility;
|
||||
import org.jiayunet.alipay.AlipayPagePayAbility;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
@@ -58,12 +57,6 @@ public class MemberProductService {
|
||||
@Autowired
|
||||
private PayAlipayFlowMapper payAlipayFlowMapper;
|
||||
|
||||
@Value("${wx_pay.merchant_id:}")
|
||||
private String merchantId;
|
||||
|
||||
@Value("${app.wx.app_id:}")
|
||||
private String appId;
|
||||
|
||||
/**
|
||||
* 商品列表
|
||||
* <p>查询上架商品,按sort_order排序</p>
|
||||
@@ -169,8 +162,6 @@ public class MemberProductService {
|
||||
payWechatFlowMapper.insert(flow);
|
||||
|
||||
PrepayRequest request = new PrepayRequest();
|
||||
request.setAppid(appId);
|
||||
request.setMchid(merchantId);
|
||||
request.setDescription(product.getProductName());
|
||||
request.setOutTradeNo(orderNo);
|
||||
Amount amount = new Amount();
|
||||
|
||||
@@ -24,6 +24,7 @@ email:
|
||||
wx_pay:
|
||||
# status close:关闭 open:打开
|
||||
status: close
|
||||
app_id: your_app_id
|
||||
merchant_id: ${MERCHANT_ID:your_merchant_id}
|
||||
private_key: ${WX_PRIVATE_KEY:your_private_key}
|
||||
merchant_serial_number: ${MERCHANT_SERIAL_NUMBER:your_merchant_serial_number}
|
||||
@@ -74,10 +75,7 @@ app:
|
||||
interval_time: 20
|
||||
limit_number: 20
|
||||
|
||||
# 微信小程序
|
||||
wx:
|
||||
app_id: wx7d75957cbd35e36b
|
||||
app_secret: d70ef5baa4b9c046f396736d9a42cdc3
|
||||
|
||||
|
||||
#开放接口
|
||||
ignore:
|
||||
|
||||
Reference in New Issue
Block a user