allen 3 年之前
父節點
當前提交
80593620b1
共有 1 個文件被更改,包括 14 次插入14 次删除
  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, '活动末开始');
             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");
         $duration = Request::post("duration");
         $number = Request::post("number");
         $number = Request::post("number");