This commit is contained in:
hujiabin 2024-08-07 16:24:35 +08:00
parent 6e8e92b2fc
commit 5c6bf0e56f
2 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class HashRate extends BaseModel
} }
public static function getTotalByAccount($accountId,$period){ public static function getTotalByAccount($accountId,$period){
$row = SqlHelper::ormSelect( $row = SqlHelper::ormSelectOne(
myself()->_getSelfMysql(), myself()->_getSelfMysql(),
't_hash_rate_reward', 't_hash_rate_reward',
array( array(

View File

@ -228,6 +228,7 @@ class RoomBattleDataService extends BaseService {
$currentPeriod= \mt\AchievementsCycle::getCurrentPeriod(); $currentPeriod= \mt\AchievementsCycle::getCurrentPeriod();
if ($currentPeriod && myself()->_getNowTime() >= strtotime($currentPeriod['income_start_time'])){ if ($currentPeriod && myself()->_getNowTime() >= strtotime($currentPeriod['income_start_time'])){
$currentCompute = HashRate::getTotalByAccount($userDb['account_id'], $currentPeriod['id']); $currentCompute = HashRate::getTotalByAccount($userDb['account_id'], $currentPeriod['id']);
error_log("金币模式-算力加成:".$currentCompute);
$computeR = explode("|",mt\Parameter::getVal('economy_account_compute_R',0)); $computeR = explode("|",mt\Parameter::getVal('economy_account_compute_R',0));
$k = 0; $k = 0;
for ($i=0;$i<count($computeR);$i++){ for ($i=0;$i<count($computeR);$i++){