wangqifan 3 年之前
父節點
當前提交
64d9286714

+ 3 - 3
src/main/java/com/izouma/nineth/service/SandPayService.java

@@ -266,9 +266,9 @@ public class SandPayService {
         if (order.getStatus() != OrderStatus.NOT_PAID) {
         if (order.getStatus() != OrderStatus.NOT_PAID) {
             throw new BusinessException("订单状态错误");
             throw new BusinessException("订单状态错误");
         }
         }
-        if (order.getSource().equals(CollectionSource.TRANSFER)) {
-            throw new BusinessException("二级市场暂未开放");
-        }
+//        if (order.getSource().equals(CollectionSource.TRANSFER)) {
+//            throw new BusinessException("二级市场暂未开放");
+//        }
         JSONObject extend = new JSONObject();
         JSONObject extend = new JSONObject();
         extend.put("type", "order");
         extend.put("type", "order");
         extend.put("id", orderId);
         extend.put("id", orderId);

+ 2 - 1
src/main/java/com/izouma/nineth/web/AssetController.java

@@ -105,7 +105,8 @@ public class AssetController extends BaseController {
     @PostMapping("/gift")
     @PostMapping("/gift")
     @ApiOperation("转赠")
     @ApiOperation("转赠")
     public GiftOrder gift(@RequestParam Long assetId, @RequestParam Long toUserId) {
     public GiftOrder gift(@RequestParam Long assetId, @RequestParam Long toUserId) {
-        return giftOrderService.gift(SecurityUtils.getAuthenticatedUser().getId(), assetId, toUserId);
+//        return giftOrderService.gift(SecurityUtils.getAuthenticatedUser().getId(), assetId, toUserId);
+        return null;
     }
     }
 
 
     @GetMapping("/tokenHistory")
     @GetMapping("/tokenHistory")