|
|
@@ -13,6 +13,7 @@ use think\Exception;
|
|
13
|
13
|
use think\exception\ValidateException;
|
|
14
|
14
|
use think\facade\Db;
|
|
15
|
15
|
use think\facade\Log;
|
|
|
16
|
+use app\common\repositories\user\UserRepository;
|
|
16
|
17
|
|
|
17
|
18
|
class Jd extends BaseController
|
|
18
|
19
|
{
|
|
|
@@ -155,7 +156,7 @@ class Jd extends BaseController
|
|
155
|
156
|
}
|
|
156
|
157
|
|
|
157
|
158
|
/*京粉精选商品查询接口*/
|
|
158
|
|
- public function jdList()
|
|
|
159
|
+ public function jdList(UserRepository $repository)
|
|
159
|
160
|
{
|
|
160
|
161
|
$keyword = request()->param('keyword', '');
|
|
161
|
162
|
$_cid = request()->param('cid', '');
|
|
|
@@ -228,7 +229,7 @@ class Jd extends BaseController
|
|
228
|
229
|
}
|
|
229
|
230
|
shuffle($formatList);
|
|
230
|
231
|
$uid = $uid ?? 0;
|
|
231
|
|
- app('app\controller\api\User')->sproductkeywordHistory($uid, $keyword, 2);
|
|
|
232
|
+ $repository->sproductkeywordHistory($uid, 1, 1, '用户同意用户协议记录');
|
|
232
|
233
|
return app("json")->success($formatList);
|
|
233
|
234
|
}
|
|
234
|
235
|
|