|
|
@ -488,7 +488,7 @@ class TestingResourceService
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @todo 游戏猫只能每个资源数量只能为1
|
|
|
|
* @todo 游戏猫只能每个资源数量只能为1
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
if ($record['num'] != 1) {
|
|
|
|
if ($gameSetting['is_enable_num'] == 0 && $record['num'] != 1) {
|
|
|
|
throw new \Exception('该游戏每次申请单项资源数量只能为1');
|
|
|
|
throw new \Exception('该游戏每次申请单项资源数量只能为1');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|