WIN-2308041133\Administrator il y a 1 jour
Parent
commit
f8849fd55b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      app/api/controller/Pub.php

+ 2 - 0
app/api/controller/Pub.php

@@ -14,6 +14,7 @@ namespace app\api\controller;
 
 use app\model\api\ArticleModel;
 use app\model\api\LikeBookmark;
+use app\model\api\UserClock;
 use think\db\exception\DataNotFoundException;
 use think\db\exception\DbException;
 use think\db\exception\ModelNotFoundException;
@@ -413,6 +414,7 @@ class Pub extends BaseController
             $data['is_like'] = 0;
             $data['is_bookmark'] = 0;
         }
+        $data['check_num'] = (new UserClock())->where('uid',$request->user['uid'])->count();
 
         return app('json')->success($data);
     }