shish 1 год назад
Родитель
Сommit
602d690f89
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app-ghs/controllers/OrderController.php

+ 4 - 0
app-ghs/controllers/OrderController.php

@@ -2625,6 +2625,10 @@ class OrderController extends BaseController
             util::fail('不是你的客户');
         }
 
+        if (isset($customRes->mainId) && !empty($customRes->mainId) && $customRes->mainId == $customRes->ownMainId) {
+            util::fail('不能给自己开单');
+        }
+
         $file = $_FILES['file'];
         if (!is_uploaded_file($file['tmp_name'])) {
             util::fail('please upload img');