Browse Source

Wesmiler 时光单身NN2019120501项目迁移

wesmiler 5 years ago
parent
commit
729f3faa07
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/MarketController.php

+ 1 - 1
app/api/controller/MarketController.php

@@ -43,7 +43,7 @@ class MarketController extends MarketBaseController
     {
         $type = input('type', 0);
         $id = input('id', 0); // 当前浏览的用户ID
-        $userId = $this->userId;
+        $userId = $id? $id : $this->userId;
         $memberInfo = Member::getInfo(['id' => $userId,'agent_type'=> 1]);
 
         // 冻结