|
|
@@ -185,9 +185,9 @@ class SystemUserTask extends BaseModel
|
|
|
}
|
|
|
$layer++;
|
|
|
}
|
|
|
- $countPay = UserMiningMachine::where('paid', 1)->where('status', 'in', [0, 1])->where('mining_end_time', '<', time())->where('uid', 'in', $uids)->sum('num');
|
|
|
+ $countPay = UserMiningMachine::where('paid', 1)->where('status', 'in', [0, 1])->where('mining_end_time', '>', time())->where('uid', 'in', $uids)->sum('num');
|
|
|
if ($countPay >= $number) $isComplete = UserTaskFinish::setFinish($uid, $task_id) ? true : false;
|
|
|
- var_dump(['还需团队算力{$num}T', $countPay, $isComplete]);
|
|
|
+// var_dump(['还需团队算力{$num}T', $countPay, $isComplete]);
|
|
|
return ['还需团队算力{$num}T', $countPay, $isComplete];
|
|
|
}
|
|
|
|
|
|
@@ -202,9 +202,9 @@ class SystemUserTask extends BaseModel
|
|
|
public static function SelfHashRate($task_id, $uid = 0, $start_time = 0, $number = 0)
|
|
|
{
|
|
|
$isComplete = false;
|
|
|
- $countPay = UserMiningMachine::where('paid', 1)->where('status', 'in', [0, 1])->where('mining_end_time', '<', time())->where('uid', $uid)->sum('num');
|
|
|
+ $countPay = UserMiningMachine::where('paid', 1)->where('status', 'in', [0, 1])->where('mining_end_time', '>', time())->where('uid', $uid)->sum('num');
|
|
|
if ($countPay >= $number) $isComplete = UserTaskFinish::setFinish($uid, $task_id) ? true : false;
|
|
|
- var_dump(['还需个人算力{$num}T', $countPay, $isComplete]);
|
|
|
+// var_dump(['还需个人算力{$num}T', $countPay, $isComplete]);
|
|
|
return ['还需个人算力{$num}T', $countPay, $isComplete];
|
|
|
}
|
|
|
|