Browse Source

可以开放给自己开单

shish 1 day ago
parent
commit
ccefe1e3f1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app-ghs/controllers/OrderController.php

+ 2 - 2
app-ghs/controllers/OrderController.php

@@ -1342,7 +1342,7 @@ class OrderController extends BaseController
 
         CustomClass::valid($custom, $this->shopId);
         if (!empty($custom['mainId']) && $custom['mainId'] == $custom['ownMainId']) {
-            util::fail('不能给自己开单');
+            //util::fail('不能给自己开单');
         }
         $post['ghsId'] = $custom['ghsId'] ?? 0;
         $post['customMobile'] = $custom['mobile'] ?? '';
@@ -3527,7 +3527,7 @@ class OrderController extends BaseController
             }
 
             if (isset($customRes->mainId) && !empty($customRes->mainId) && $customRes->mainId == $customRes->ownMainId) {
-                util::fail('不能给自己开单');
+                //util::fail('不能给自己开单');
             }
 
             $file = $_FILES['file'];