Helius
2021-06-15 a525a164701bfcf4d5002f29e1f3ad60ee50ca28
src/main/java/com/xcong/excoin/modules/coin/controller/OrderCoinController.java
@@ -9,6 +9,8 @@
import com.xcong.excoin.common.annotations.SubmitRepeat;
import com.xcong.excoin.modules.coin.entity.OrderCoinsEntity;
import com.xcong.excoin.modules.symbols.constants.SymbolsConstats;
import com.xcong.excoin.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -41,7 +43,9 @@
   
   @Resource
   OrderCoinService orderCoinService;
   @Autowired
   private RedisUtils redisUtils;
   /**
    * 进入交易页面
    * @return
@@ -64,7 +68,11 @@
   @PostMapping(value="/submitSalesWalletCoinOrder")
    @SubmitRepeat
   public Result submitSalesWalletCoinOrder(@RequestBody @Valid SubmitSalesWalletCoinOrderDto submitSalesWalletCoinOrderDto) {
      log.info("买卖单参数[{}]", JSONObject.toJSONString(submitSalesWalletCoinOrderDto));
      log.debug("买卖单参数[{}]", JSONObject.toJSONString(submitSalesWalletCoinOrderDto));
      String status = redisUtils.getString("bzz_order_status");
//      if (!"1".equals(status)) {
//         return Result.fail("暂未开放");
//      }
      String symbol = submitSalesWalletCoinOrderDto.getSymbol();
      Integer type = submitSalesWalletCoinOrderDto.getType();
      Integer tradeType = submitSalesWalletCoinOrderDto.getTradeType();