|
|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Api\v1;
|
|
|
|
|
|
use App\Http\Controllers\Api\webApp;
|
|
|
use App\Services\Api\ArticleService;
|
|
|
+use App\Services\Api\OrderService;
|
|
|
use App\Services\Api\SupervisorsService;
|
|
|
use App\Services\Common\AdService;
|
|
|
use App\Services\Common\NoticeService;
|
|
|
@@ -45,7 +46,6 @@ class IndexController extends webApp
|
|
|
'withdraw_open' => ConfigService::make()->getConfigByCode('withdraw_open', 0),
|
|
|
'withdraw_min' => ConfigService::make()->getConfigByCode('withdraw_min', 0),
|
|
|
'withdraw_fee' => ConfigService::make()->getConfigByCode('withdraw_fee', 0),
|
|
|
- 'notices' => NoticeService::make()->getRecommandList(),
|
|
|
];
|
|
|
RedisService::set($cacheKey, $config, 3600);
|
|
|
}
|
|
|
@@ -81,6 +81,20 @@ class IndexController extends webApp
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 订单公告
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
+ public function notices()
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ return showJson(1010, true, \App\Services\Api\NoticeService::make()->getDataList());
|
|
|
+ } catch (\Exception $exception) {
|
|
|
+ $error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
|
|
|
+ return showJson(1046, false, $error);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 验证更新
|
|
|
* @return array
|
|
|
*/
|