wesmiler пре 2 година
родитељ
комит
d4cef2cf28

+ 0 - 20
app/Http/Controllers/Api/v1/ArticleController.php

@@ -26,26 +26,6 @@ class ArticleController extends webApp
         return showJson(1010, true, $datas);
     }
 
-    /**
-     * 分类
-     * @return array
-     */
-    public function category()
-    {
-        $datas = ArticleService::make()->getCategory();
-        return showJson(1010, true, $datas);
-    }
-
-    /**
-     * 分类
-     * @return array
-     */
-    public function cates()
-    {
-        $type = request()->post('type', 0);
-        $datas = ArticleService::make()->getCateList($type);
-        return showJson(1010, true, $datas);
-    }
 
     /**
      * 详情

+ 2 - 2
app/Services/Api/ArticleService.php

@@ -155,9 +155,9 @@ class ArticleService extends BaseService
         $locale = $locale? $locale : session('locale_lang');
         $locale = $locale? $locale :'zh-cn';
         if($locale == 'zh-cn'){
-            $field = ['id','title','cover','views','author','publish_at','file_url','type','content'];
+            $field = ['id','title','cover','views','author','publish_at','file_url','show_type','type','content'];
         }else{
-            $field = ['id',"title_{$locale} as title",'cover','views','author','publish_at','file_url','type',"content_{$locale} as content"];
+            $field = ['id',"title_{$locale} as title",'cover','views','author','publish_at','file_url','show_type','type',"content_{$locale} as content"];
         }
 
         $info = $this->model->where(['id'=> $id,'status'=>1,'mark'=>1])

+ 1 - 1
resources/lang/zh-cn/api.php

@@ -118,7 +118,7 @@ return [
     '2407'=>'提现账户处理失败',
 
     '2420'=> '参数错误',
-    '2421'=> '转账账户不存或不交易',
+    '2421'=> '转账账户不存或不交易',
     '2422'=> '转账金额不能超过USDT余额',
     '2423'=> '转账交易处理失败',
     '2424'=> '转账交易处理失败',