Browse Source

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

whitefang 1 năm trước cách đây
mục cha
commit
f133b6758f
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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('产品不存在!');