From b1bc477882df7b157bc0855627400c087593e1af Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 8 Jul 2019 21:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=92=E6=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php index 4e3c1f8a3..6c0ce9548 100755 --- a/application/api/controller/Index.php +++ b/application/api/controller/Index.php @@ -56,6 +56,14 @@ class Index extends Common 'common_app_is_online_service' => (int) MyC('common_app_is_online_service', 0), ]; + // 秒杀 + $plugins_class = 'app\plugins\limitedtimediscount\service\Service'; + if(class_exists($plugins_class)) + { + $ret = (new $plugins_class())->ApiHomeAd(); + $result['plugins_limitedtimediscount_data'] = $ret['data']; + } + // 返回数据 return DataReturn('success', 0, $result); }