|
@@ -1,8 +1,11 @@
|
|
|
package com.zanxiang.sdk.service.pay;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.zanxiang.common.domain.ResultMap;
|
|
|
import com.zanxiang.common.enums.OrderStateEnum;
|
|
|
+import com.zanxiang.common.exception.BaseException;
|
|
|
import com.zanxiang.mybatis.entity.GamePayWay;
|
|
|
+import com.zanxiang.mybatis.entity.Order;
|
|
|
import com.zanxiang.sdk.domain.bo.PlatformOrderBO;
|
|
|
import com.zanxiang.sdk.domain.bo.ProductPayAttachParamBO;
|
|
|
import com.zanxiang.sdk.domain.bo.ProductPayParamBO;
|
|
@@ -88,7 +91,12 @@ public abstract class PayBaseService {
|
|
|
* @return : 返回支付状态
|
|
|
*/
|
|
|
public Boolean paySuccess(String orderNo, String realAmount, String merchantOrderNo, String gamePayWayId) {
|
|
|
+ Order order = orderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderId, orderNo));
|
|
|
+ if (order == null) {
|
|
|
+ throw new BaseException("支付成功回调, 订单信息不存在");
|
|
|
+ }
|
|
|
PlatformOrderBO bo = new PlatformOrderBO();
|
|
|
+ bo.setId(order.getId());
|
|
|
bo.setOrderId(orderNo);
|
|
|
bo.setRealAmount(new BigDecimal(realAmount));
|
|
|
bo.setMerchantOrderNo(merchantOrderNo);
|