소스 검색

可以开放给自己开单

shish 1 일 전
부모
커밋
ccefe1e3f1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
         CustomClass::valid($custom, $this->shopId);
         if (!empty($custom['mainId']) && $custom['mainId'] == $custom['ownMainId']) {
         if (!empty($custom['mainId']) && $custom['mainId'] == $custom['ownMainId']) {
-            util::fail('不能给自己开单');
+            //util::fail('不能给自己开单');
         }
         }
         $post['ghsId'] = $custom['ghsId'] ?? 0;
         $post['ghsId'] = $custom['ghsId'] ?? 0;
         $post['customMobile'] = $custom['mobile'] ?? '';
         $post['customMobile'] = $custom['mobile'] ?? '';
@@ -3527,7 +3527,7 @@ class OrderController extends BaseController
             }
             }
 
 
             if (isset($customRes->mainId) && !empty($customRes->mainId) && $customRes->mainId == $customRes->ownMainId) {
             if (isset($customRes->mainId) && !empty($customRes->mainId) && $customRes->mainId == $customRes->ownMainId) {
-                util::fail('不能给自己开单');
+                //util::fail('不能给自己开单');
             }
             }
 
 
             $file = $_FILES['file'];
             $file = $_FILES['file'];