1 @RequestMapping("pay") 2 public ModelAndView pay(String orderNo, TransactionDTO transaction, @RequestParam("secretImg") List<String> secretImg, Integer payMethod) { 3 ModelAndView mv = new ModelAndView(); 4 if (StringTool.isEmptyByTrim(orderNo) || transaction == null || payMethod == null || payMethod == PayMethod.PAYPAL) { 5 mv.setViewName(""); 6 return mv; 7 } 8 transaction.setImgUrl(StringTool.list2Str(secretImg, "|")); 9 orderService.payOrder(header(), orderNo, transaction, payMethod); 10 mv.setViewName("redirect:/payment/payresult.cf?orderNo=" + orderNo); 11 return mv; 12 }
上传值形式:页面直接定义多个name相同的标签即可