123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\api\controller;
- class Articleclass extends MobileMall
- {
- public function initialize()
- {
- parent::initialize();
- }
-
- public function index()
- {
- $cache_key = "api-articleclass";
- $article_class = rcache($cache_key);
- if (empty($article_class)) {
- $articleclass_model = model('articleclass');
- $condition = array();
- $article_class = $articleclass_model->getArticleclassList($condition);
- wcache($cache_key, $article_class);
- }
- ds_json_encode(10000, '', array('article_class' => $article_class));
- }
- }
|