|
@@ -60,8 +60,9 @@ class Purchase extends Controller
|
|
// 'images.min:1'=>'图片必须',
|
|
// 'images.min:1'=>'图片必须',
|
|
'item.require'=>'商品参数不能为空',
|
|
'item.require'=>'商品参数不能为空',
|
|
]);
|
|
]);
|
|
- input('images')?$data['images']=input('images'):'';
|
|
|
|
- if(isset($data['images'])){
|
|
|
|
|
|
+ $images = $this->request->post('images');
|
|
|
|
+
|
|
|
|
+ if(isset($images) && $images!=null){
|
|
$data['images'] = json_decode($request['images'],true);
|
|
$data['images'] = json_decode($request['images'],true);
|
|
foreach ($data['images'] as $image){
|
|
foreach ($data['images'] as $image){
|
|
$validate->failException()->check($image,[
|
|
$validate->failException()->check($image,[
|