|
|
@@ -186,4 +186,24 @@ class MiningController
|
|
|
'list' => UserMining::getList($where)
|
|
|
]);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+// public function spread_mining_get(Request $request)
|
|
|
+// {
|
|
|
+// $where = UtilService::getMore([
|
|
|
+// ['page', 1],
|
|
|
+// ['limit', 10],
|
|
|
+// ['type', 'XCH']
|
|
|
+// ]);
|
|
|
+// $where['uid'] = $request->uid();
|
|
|
+//
|
|
|
+// return app('json')->success('ok', [
|
|
|
+// 'all_get' => UserMining::where('get_money_type', $where['type'])->where('uid', $where['uid'])->sum('get_money'),
|
|
|
+// 'all_unlock' => UserMining::where('get_money_type', $where['type'])->where('uid', $where['uid'])->sum('unlock'),
|
|
|
+// 'all_unstand' => UserMining::where('get_money_type', $where['type'])->where('uid', $where['uid'])->sum('unstand'),
|
|
|
+// 'all_lock' => UserMining::where('get_money_type', $where['type'])->where('uid', $where['uid'])->sum('lock_money'),
|
|
|
+// 'stand' => UserMiningMachine::where('get_money_type', $where['type'])->where('uid', $where['uid'])->sum('stand_money'),
|
|
|
+// 'list' => UserMining::getList($where)
|
|
|
+// ]);
|
|
|
+// }
|
|
|
}
|