修复报错

This commit is contained in:
lxk0301
2021-05-16 08:11:41 +08:00
parent 91c27ffa2b
commit b796b69974

View File

@@ -737,7 +737,7 @@ function DrawProductionStagePrize() {
async function PickUp(encryptPin = $.encryptPin, help = false) {
$.pickUpMyselfComponent = true;
const GetUserComponentRes = await GetUserComponent(encryptPin, 1500);
if (GetUserComponentRes && GetUserComponentRes['ret'] === 0) {
if (GetUserComponentRes && GetUserComponentRes['ret'] === 0 && GetUserComponentRes['data']) {
const { componentList } = GetUserComponentRes['data'];
if (componentList && componentList.length <= 0) {
if (help) {