allen 3 лет назад
Родитель
Сommit
292eb8d480
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      app/index/controller/Index.php

+ 0 - 8
app/index/controller/Index.php

@@ -356,14 +356,6 @@ class Index extends Controller
         $giftId = trim(Request::post("giftId"));
         $type = trim(Request::post("type"));
 
-        if ($type == 1) {
-            $activity = Db::table('awards_activity')->where('begin_at', '<=', time())
-                ->where('end_at', '>=', time())->find();
-            if (empty($activity)) {
-                return $this->response(5002, '活动末开始');
-            }
-        }
-
         $orders = Db::table('awards_order')->where('uid', Safe::$user['uid'])->where('type', $type)->find();
         if (empty($orders)) {
             return $this->response(5001, '参数有误');