Преглед на файлове

fixed:获取附近技师列表

刘学玺 преди 4 месеца
родител
ревизия
d143be57fd
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      app/Http/Controllers/Client/CoachController.php
  2. 2 2
      app/Services/Client/CoachService.php

+ 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);