|
|
@@ -4,6 +4,7 @@ namespace app\controller\api\store\product;
|
|
4
|
4
|
|
|
5
|
5
|
use app\common\model\user\UserThird;
|
|
6
|
6
|
use app\common\repositories\store\product\ProductRepository;
|
|
|
7
|
+use app\common\repositories\user\UserRepository;
|
|
7
|
8
|
use app\common\repositories\user\UserThirdRepository;
|
|
8
|
9
|
use app\model\common\PddOrderModel;
|
|
9
|
10
|
use crmeb\services\JwtTokenService;
|
|
|
@@ -127,7 +128,7 @@ class TaoKe extends BaseController
|
|
127
|
128
|
|
|
128
|
129
|
|
|
129
|
130
|
//拼多多商品列表
|
|
130
|
|
- public function pdd_list()
|
|
|
131
|
+ public function pdd_list(UserRepository $repository)
|
|
131
|
132
|
{
|
|
132
|
133
|
$keyword=input('keyword','');
|
|
133
|
134
|
$cat_id = input('cat_id','');
|
|
|
@@ -279,7 +280,7 @@ class TaoKe extends BaseController
|
|
279
|
280
|
|
|
280
|
281
|
shuffle($goodsList);
|
|
281
|
282
|
$uid = $uid ?? 0;
|
|
282
|
|
- //app('app\controller\api\User')->sproductkeywordHistory($uid, $keyword, 3);
|
|
|
283
|
+ $repository->sproductkeywordHistory($uid, $keyword, 3);
|
|
283
|
284
|
return app('json')->success('获取拼多多商品列表成功', $goodsList);
|
|
284
|
285
|
}
|
|
285
|
286
|
|