Kirin 4 rokov pred
rodič
commit
1be1caf067

+ 1 - 1
app/api/controller/mining/MiningController.php

@@ -76,7 +76,7 @@ class MiningController
         $all = UserMiningMachine::where('get_money_type', 'in', 'XCH')->where('uid', $request->uid())->sum('num');
         $doing = UserMiningMachine::where('get_money_type', 'in', 'XCH')->where('uid', $request->uid())->where('status', 'in', [1, 2])->sum('num');
         $stand = UserMiningMachine::where('get_money_type', 'in', 'XCH')->where('uid', $request->uid())->where('status', 0)->sum('num');
-        $umids = UserMiningMachine::where('uid', $request->uid())->column('umid');
+        $umids = UserMiningMachine::where('uid', $request->uid())->column('id');
         $all_mining = UserMining::where('get_money_type', 'in', 'XCH')->where('umid', 'in', $umids)->sum('get_money');
         $all_lock = UserMining::where('get_money_type', 'in', 'XCH')->where('umid', 'in', $umids)->sum('lock_money');
         return app('json')->success('ok', compact('all', 'doing', 'stand', 'all_mining', 'all_lock'));