|
@@ -194,7 +194,6 @@ public class PayOrderServiceImpl implements PayOrderService {
|
|
|
* 设置第三方支付参数
|
|
|
*/
|
|
|
private JSONObject getPayParameter(PaymentDto payment, long time) throws Exception {
|
|
|
- String userType = "ENTERPRISE";
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("merAccount", merAccount);
|
|
|
json.put("merNo", merNo);
|
|
@@ -209,7 +208,9 @@ public class PayOrderServiceImpl implements PayOrderService {
|
|
|
if (null != payment.getBankCode()) {
|
|
|
json.put("bankCode", payment.getBankCode());
|
|
|
}
|
|
|
- json.put("userType", userType);
|
|
|
+ if (StringUtils.isNotBlank(payment.getUserType())) {
|
|
|
+ json.put("userType", payment.getUserType());
|
|
|
+ }
|
|
|
if (null != payment.getOrderId()) {
|
|
|
json.put("openId", payment.getOpenid());
|
|
|
}
|