|
@@ -12,6 +12,7 @@ import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.module.web.util.URIUtil;
|
|
|
import com.zanxiang.mybatis.entity.*;
|
|
|
import com.zanxiang.sdk.domain.dto.PlatformOrderDTO;
|
|
|
+import com.zanxiang.sdk.domain.result.PushCpResult;
|
|
|
import com.zanxiang.sdk.service.*;
|
|
|
import com.zanxiang.sdk.util.SignUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -96,8 +97,8 @@ public class PerformOrderServiceImpl implements PerformOrderService {
|
|
|
throw new BaseException("回调CP充值接口异常");
|
|
|
}
|
|
|
log.error("通知CP支付回调结果, resultStr : {}", resultStr);
|
|
|
- Map<String, String> resultMap = JsonUtil.toMap(resultStr, Map.class, String.class, String.class);
|
|
|
- boolean pushSuccess = Objects.equals(resultMap.get("result"), "200");
|
|
|
+ PushCpResult pushCpResult = JsonUtil.toObj(resultStr, PushCpResult.class);
|
|
|
+ boolean pushSuccess = Objects.equals(pushCpResult.getRet(), "200");
|
|
|
//更新订单信息
|
|
|
orderService.update(new LambdaUpdateWrapper<Order>()
|
|
|
.set(Order::getCpNotifyCnt, orderInfo.getCpNotifyCnt() + 1)
|