|
|
@@ -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");
|
|
|
|