allen há 3 anos atrás
pai
commit
80593620b1
1 ficheiros alterados com 14 adições e 14 exclusões
  1. 14 14
      app/index/controller/Index.php

+ 14 - 14
app/index/controller/Index.php

@@ -172,20 +172,20 @@ class Index extends Controller
             return $this->response(5002, '活动末开始');
         }
 
-        if (empty(Safe::$body)) {
-            return $this->response(5003, '参数有误');
-        }
-
-        if (!isset(Safe::$body['duration']) || Safe::$body['duration'] < 1 || Safe::$body['duration'] > 1000) {
-            return $this->response(5003, '时长参数有误');
-        }
-
-        if (!isset(Safe::$body['number']) || Safe::$body['number'] < 0 || Safe::$body['number'] > 1000) {
-            return $this->response(5003, '时长参数有误');
-        }
-
-        $duration = Safe::$body['duration'];
-        $number = Safe::$body['number'];
+//        if (empty(Safe::$body)) {
+//            return $this->response(5003, '参数有误');
+//        }
+//
+//        if (!isset(Safe::$body['duration']) || Safe::$body['duration'] < 1 || Safe::$body['duration'] > 1000) {
+//            return $this->response(5003, '时长参数有误');
+//        }
+//
+//        if (!isset(Safe::$body['number']) || Safe::$body['number'] < 0 || Safe::$body['number'] > 1000) {
+//            return $this->response(5003, '时长参数有误');
+//        }
+//
+//        $duration = Safe::$body['duration'];
+//        $number = Safe::$body['number'];
         $duration = Request::post("duration");
         $number = Request::post("number");