1
This commit is contained in:
parent
6e8e92b2fc
commit
5c6bf0e56f
@ -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(
|
||||||
|
@ -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++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user