Bladeren bron

wesmiler 报恩寺项目提交

wesmiler 4 jaren geleden
bovenliggende
commit
564bcd888d
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/Http/Controllers/Api/v1/MasterController.php

+ 1 - 1
app/Http/Controllers/Api/v1/MasterController.php

@@ -34,7 +34,7 @@ class MasterController extends BaseController
      * @return array|mixed
      * @return array|mixed
      */
      */
     public function info(){
     public function info(){
-        $userId = request()->get('user_id', 0);
+        $userId = request()->get('id', 0);
         $info = $this->service->getUserInfo($userId, $this->userId);
         $info = $this->service->getUserInfo($userId, $this->userId);
         return message(MESSAGE_OK,true, $info);
         return message(MESSAGE_OK,true, $info);
     }
     }