Kirin 3 years ago
parent
commit
8170224a49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/mining/UserMiningMachine.php

+ 1 - 1
app/models/mining/UserMiningMachine.php

@@ -253,7 +253,7 @@ class UserMiningMachine extends BaseModel
             ->join('user r', 'r.uid=a.uid', 'LEFT'), 'a.', 'r')
             ->field('a.*,r.nickname,r.phone,r.spread_uid');
         $model = $model->order('a.id desc');
-        $data = ($data = $model->page((int)$where['page'], (int)$where['limit'])->select()->each(function ($item) {
+        $data = ($data = $model->page((int)$where['page'], (int)$where['limit'])->select()->each(function ($item) use ($where) {
             $item['machine'] = MiningMachine::get($item['mid']);
             $item['user'] = User::getUserInfo($item['uid'])['nickname'] . '/' . $item['uid'];
             $item['_user'] = User::getUserInfo($item['uid']);