|
@@ -74,7 +74,7 @@ class MiningController
|
|
|
|
|
|
public function mining_index(Request $request)
|
|
|
{
|
|
|
- $type = $request->get('type','XCH');
|
|
|
+ $type = $request->get('type', 'XCH');
|
|
|
$all = UserMiningMachine::where('get_money_type', 'in', $type)->where('uid', $request->uid())->sum('num');
|
|
|
$doing = UserMiningMachine::where('get_money_type', 'in', $type)->where('uid', $request->uid())->where('status', 'in', [1, 2])->sum('num');
|
|
|
$stand = UserMiningMachine::where('get_money_type', 'in', $type)->where('uid', $request->uid())->where('status', 0)->sum('num');
|
|
@@ -95,7 +95,7 @@ class MiningController
|
|
|
$limit = $request->get('limit', 10);
|
|
|
$get_money_type = $request->get('get_money_type', '');
|
|
|
$type = $request->get('type', '');
|
|
|
- return app('json')->success('ok', MiningMachine::getList($page, $limit, ['get_money_type' => $get_money_type, 'type' => $type]));
|
|
|
+ return app('json')->success('ok', MiningMachine::getList($page, $limit, ['get_money_type' => $get_money_type, 'type' => $type, 'uid' => $request->uid()]));
|
|
|
}
|
|
|
|
|
|
|