lizhen_gitee 3 months ago
parent
commit
ad1f39eb80
1 changed files with 4 additions and 0 deletions
  1. 4 0
      addons/unishop/controller/Order.php

+ 4 - 0
addons/unishop/controller/Order.php

@@ -701,6 +701,10 @@ class Order extends Base
         if ($order->have_received == $orderModel::RECEIVED_NO) {
             $this->error(__('未核销,不可评价'));
         }
+        $images_arr = explode(',',$images);
+        if(count($images_arr) > 5){
+            $this->error('最多上传5张图片');
+        }
 
         $result = false;
         try {