|
@@ -80,7 +80,7 @@ public class MiPayServiceImpl extends PayService implements OrderPayService {
|
|
|
if (orderInfo.getGameId() == null || orderInfo.getGameId() == 0) {
|
|
|
throw new CustomException(HttpStatusEnum.ORDER_GAME_ID_IS_NULL);
|
|
|
}
|
|
|
- this.isSand = Objects.equals(this.springActive, "dev") ? 1 : 2;
|
|
|
+ this.isSand = Objects.equals(this.springActive, "dev") ? 1 : 0;
|
|
|
//查询游戏配置
|
|
|
GamePayWay one = gamePayWayService.getOne(new LambdaQueryWrapper<GamePayWay>()
|
|
|
.eq(GamePayWay::getGameId, orderInfo.getGameId())
|
|
@@ -106,8 +106,13 @@ public class MiPayServiceImpl extends PayService implements OrderPayService {
|
|
|
}
|
|
|
//余额不足, 返回订单id, 前端调充值接口, 充值完后再继续支付
|
|
|
if (balance < orderInfo.getAmount().longValue()) {
|
|
|
+ result.put("currencyType", "CNY");
|
|
|
+ result.put("mode", "game");
|
|
|
+ result.put("zoneId", "1");
|
|
|
+ result.put("offerId", miPayConfig.getAppId());
|
|
|
+ result.put("env", String.valueOf(this.isSand));
|
|
|
+ result.put("buyQuantity", orderInfo.getAmount().toString());
|
|
|
result.put("status", "1");
|
|
|
- result.put("need", orderInfo.getAmount().toString());
|
|
|
result.put("balance", String.valueOf(balance));
|
|
|
}
|
|
|
return ResultMap.ok(result);
|