diff --git a/app/Http/Controllers/Api/AgentProductController.php b/app/Http/Controllers/Api/AgentProductController.php index 2b4e91a..d946bc1 100644 --- a/app/Http/Controllers/Api/AgentProductController.php +++ b/app/Http/Controllers/Api/AgentProductController.php @@ -71,10 +71,17 @@ class AgentProductController extends Controller return $this->success($list); } - //我的下方推荐 - public function recommend() + //【我的】页面下方推荐 + public function recommendList() { //TODO 推荐数据暂时使用产品列表,后期需要通过后台设置获取或根据用户购买过的关键词获取 return $this->index(); } + + //人气爆款列表 + public function hotList() + { + //TODO 具体排序规则,后期再做修改 + return $this->index(); + } } diff --git a/routes/api.php b/routes/api.php index e809424..dd6a970 100644 --- a/routes/api.php +++ b/routes/api.php @@ -42,7 +42,8 @@ Route::namespace('App\Http\Controllers\Api') Route::post('list', 'AgentProductController@index'); //产品列表 Route::post('guess', 'AgentProductController@guessLike'); //猜你喜欢 Route::post('show', 'AgentProductController@show'); //产品详情 - Route::post('recommend', 'AgentProductController@recommend'); //我的下方推荐 + Route::post('recommend', 'AgentProductController@recommendList'); //我的下方推荐 + Route::post('hot', 'AgentProductController@hotList'); //人气爆款列表 }); # 产品分类