wupengfei 2 rokov pred
rodič
commit
f21a9bba48

+ 1 - 1
application/common/model/UserSearch.php

@@ -29,7 +29,7 @@ class UserSearch extends Model
     {
         $where[] = ['user_id','=',$user_id];
         if($type != 0) $where[] = ['type','in','0,'.$type];
-        return self::where($where)->order('id desc')->limit(0,10)->column('title');
+        return self::where($where)->order('id desc')->limit(0,$limit)->column('title');
     }
 
 

+ 1 - 4
application/nutrition/controller/SeriesManage.php

@@ -1,13 +1,10 @@
 <?php
 namespace app\Nutrition\controller;
-use app\common\model\NutritionCase;
-use app\common\model\VideoIntro;
 use app\common\model\VideoUrl;
-use hg\apidoc\annotation\explain\Url;
 use library\Controller;
 use library\tools\Data;
 use think\Db;
-use app\common\model\VideoCate as VCM;
+use app\common\model\SeriesVideoCate as VCM;
 /**
  * 视频管理
  * Class VideoManage