|
|
@@ -22,6 +22,7 @@ import org.springframework.data.domain.Page;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.time.OffsetTime;
|
|
|
@@ -29,6 +30,7 @@ import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Optional;
|
|
|
+import java.util.regex.Pattern;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@RestController
|
|
|
@@ -98,9 +100,9 @@ public class OrderController extends BaseController {
|
|
|
public Order create(@RequestParam Long collectionId, @RequestParam int qty,
|
|
|
@RequestParam(required = false) Long addressId,
|
|
|
@RequestParam(required = false) Long couponId,
|
|
|
- @RequestParam(required = false) Long invitor) {
|
|
|
- return orderService.create(SecurityUtils.getAuthenticatedUser().getId(),
|
|
|
- collectionId, qty, addressId, couponId, invitor, null);
|
|
|
+ @RequestParam(required = false) Long invitor,
|
|
|
+ @RequestHeader(value = "User-Agent") String userAgent) {
|
|
|
+ throw new BusinessException("iOS客户端暂时无法下单,请使用H5或Android客户端");
|
|
|
}
|
|
|
|
|
|
@PostMapping("/mqCreate")
|