调试H5支付宝支付
This commit is contained in:
@@ -1917,7 +1917,7 @@ public class PayService {
|
|||||||
*/
|
*/
|
||||||
public Result createOrder(String ip, String userId, String payType, String shopId, String orderId,
|
public Result createOrder(String ip, String userId, String payType, String shopId, String orderId,
|
||||||
BigDecimal amount, String remark) throws JsonProcessingException {
|
BigDecimal amount, String remark) throws JsonProcessingException {
|
||||||
|
log.info("createOrder:{}", JSONObject.toJSONString(new Object[]{ip, userId, payType, shopId, orderId, amount, remark}));
|
||||||
if (ObjectUtil.isNull(userId) || ObjectUtil.isEmpty(userId) || ObjectUtil.isEmpty(payType) ||
|
if (ObjectUtil.isNull(userId) || ObjectUtil.isEmpty(userId) || ObjectUtil.isEmpty(payType) ||
|
||||||
ObjectUtil.isNull(payType) || ObjectUtil.isNull(shopId) || ObjectUtil.isEmpty(shopId) ||
|
ObjectUtil.isNull(payType) || ObjectUtil.isNull(shopId) || ObjectUtil.isEmpty(shopId) ||
|
||||||
ObjectUtil.isNull(shopId) || ObjectUtil.isNull(amount) || ObjectUtil.isEmpty(amount)) {
|
ObjectUtil.isNull(shopId) || ObjectUtil.isNull(amount) || ObjectUtil.isEmpty(amount)) {
|
||||||
@@ -2003,7 +2003,6 @@ public class PayService {
|
|||||||
reqbody, reqbody, amount.multiply(new BigDecimal(100)).longValue(),
|
reqbody, reqbody, amount.multiply(new BigDecimal(100)).longValue(),
|
||||||
payType, thirdApply.getSmallAppid(), userId, ip,
|
payType, thirdApply.getSmallAppid(), userId, ip,
|
||||||
DateUtils.getSsdfTimes(), thirdApply.getStoreId(), backUrl, backUrl);
|
DateUtils.getSsdfTimes(), thirdApply.getStoreId(), backUrl, backUrl);
|
||||||
|
|
||||||
if (ObjectUtil.isNotNull(publicResp) && ObjectUtil.isNotEmpty(publicResp)) {
|
if (ObjectUtil.isNotNull(publicResp) && ObjectUtil.isNotEmpty(publicResp)) {
|
||||||
if ("000000".equals(publicResp.getCode())) {
|
if ("000000".equals(publicResp.getCode())) {
|
||||||
JspayResp scanpayResp = publicResp.getObjData();
|
JspayResp scanpayResp = publicResp.getObjData();
|
||||||
|
|||||||
Reference in New Issue
Block a user