Browse Source

fixed:获取附近技师列表

刘学玺 4 months ago
parent
commit
d143be57fd

+ 2 - 2
app/Http/Controllers/Client/CoachController.php

@@ -21,7 +21,7 @@ class CoachController extends Controller
     }
 
     /**
-     * 获取技师列表
+     * 获取附近技师列表
      *
      * 根据经纬度获取技师列表
      *
@@ -48,7 +48,7 @@ class CoachController extends Controller
         $latitude = $request->input('latitude');
         $longitude = $request->input('longitude');
 
-        return $this->service->getCoachList($latitude, $longitude);
+        return $this->service->getNearCoachList($latitude, $longitude);
     }
 
     /**

+ 2 - 2
app/Services/Client/CoachService.php

@@ -10,9 +10,9 @@ use Illuminate\Support\Facades\Redis;
 class CoachService
 {
     /**
-     * 获取技师列表
+     * 获取附近技师列表
      */
-    public function getCoachList($latitude, $longitude)
+    public function getNearCoachList($latitude, $longitude)
     {
         $page = request()->get('page', 1);
         $perPage = request()->get('per_page', 15);