This commit is contained in:
hujiabin 2024-01-17 16:59:32 +08:00
parent f8a7a463ad
commit 2fb50de087
3 changed files with 3 additions and 3 deletions

View File

@ -1712,7 +1712,7 @@ CREATE TABLE `t_hash_rate` (
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `account_task_id` (`account_id`, `task_id`)
UNIQUE KEY `account_period_task_id` (`account_id`,`period`, `task_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--

View File

@ -9,7 +9,7 @@ CREATE TABLE `t_hash_rate` (
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `account_task_id` (`account_id`, `task_id`)
UNIQUE KEY `account_period_task_id` (`account_id`,`period`, `task_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
CREATE TABLE `t_hash_rate_battle_data` (

View File

@ -177,7 +177,7 @@ class HashRateService extends BaseService
private function getWeaponsSlotData($taskMate){
$val = 0;
$battleData = $this->internalGetBattleData($taskMate);
$slotData = $battleData['weapons_slot_data'] ? $battleData['weapons_slot_data'] : array();
$slotData = isset($battleData['weapons_slot_data']) ? $battleData['weapons_slot_data'] : array();
if (array_key_exists($taskMate['condition'],$slotData)){
$val = $slotData[$taskMate['condition']];
}