新版仿ok交易所-后端
1
zj
8 days ago 579177ac64462d0fec885eb10af3097245134f80
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiItemUserOptionalController.java
@@ -70,7 +70,7 @@
            queryWrapper.eq("symbol", symbol);
            long count = itemUserOptionalService.count(queryWrapper);
            if(count > 0 ){
               throw new YamiShopBindException("当前已经加入过自选");
               throw new YamiShopBindException("Already added to favorites");
            }
@@ -80,11 +80,11 @@
            entity.setSymbol(symbol);
            itemUserOptionalService.save(entity);
         }else {
            throw new YamiShopBindException("请稍后再试");
            throw new YamiShopBindException("Please try again later");
         }
      } catch (Exception e) {
         log.error("保存自选失败", e);
         throw new YamiShopBindException("保存自选失败:"+ e.getMessage());
         throw new YamiShopBindException("Failed to save favorites: " + e.getMessage());
      }finally {
         if (lock) {
            ThreadUtils.sleep(50);
@@ -110,11 +110,11 @@
            queryWrapper.eq("symbol", symbol);
            itemUserOptionalService.remove(queryWrapper);
         }else {
            throw new YamiShopBindException("请稍后再试");
            throw new YamiShopBindException("Please try again later");
         }
      } catch (Exception e) {
         log.error("删除失败", e);
         throw new YamiShopBindException("删除失败");
         throw new YamiShopBindException("Delete failed");
      } finally {
         if (lock) {