소스 검색

用户提交订单-超出超出服务区的限制

whitefang 1 년 전
부모
커밋
f133b6758f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/api/logic/ServiceOrderLogic.php

+ 3 - 3
app/api/logic/ServiceOrderLogic.php

@@ -64,9 +64,9 @@ class ServiceOrderLogic extends BaseLogic
         Db::startTrans();
         try {
             // 订单位置是否在服务区内
-//            if(!self::isService($params)){
-//                throw new Exception('已超出服务区域!');
-//            }
+            if(!self::isService($params)){
+                throw new Exception('已超出服务区域!');
+            }
             $goods = Goods::findOrEmpty($params['goods_id']);
             if($goods->isEmpty()){
                 throw new Exception('产品不存在!');