|
@@ -19,6 +19,7 @@ use app\common\repositories\user\UserRepository;
|
|
|
use crmeb\basic\BaseController;
|
|
|
use app\common\repositories\user\UserRelationRepository as repository;
|
|
|
use think\App;
|
|
|
+use think\console\command\Make;
|
|
|
|
|
|
class UserRelation extends BaseController
|
|
|
{
|
|
@@ -138,16 +139,4 @@ class UserRelation extends BaseController
|
|
|
$this->repository->batchCreate($this->request->uid(),$params);
|
|
|
return app('json')->success('收藏成功');
|
|
|
}
|
|
|
- /**推广员推广的用户关注的数量
|
|
|
- * @return mixed
|
|
|
- * @author Qinii
|
|
|
- */
|
|
|
- public function relationNum($uid)
|
|
|
- {
|
|
|
- $params = $this->request->params(['type_id','type']);
|
|
|
- if(!count($params['type_id']) || !in_array($params['type'], [1,10]))
|
|
|
- return app('json')->fail('请选择商品');
|
|
|
- $this->repository->batchCreate($this->request->uid(),$params);
|
|
|
- return app('json')->success('收藏成功');
|
|
|
- }
|
|
|
}
|