qifengquan 1 rok pred
rodič
commit
9517229b6c

+ 3 - 2
app/data/controller/api/business/Purchase.php

@@ -60,8 +60,9 @@ class Purchase extends Controller
 //            'images.min:1'=>'图片必须',
             '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);
             foreach ($data['images'] as $image){
                 $validate->failException()->check($image,[