兼容已被购买的卡密重复添加的问题

This commit is contained in:
吴昊天 2023-03-15 16:23:06 +08:00
parent 1f53c58865
commit fcf1fd98ae

View File

@ -90,8 +90,6 @@ class StoreProductAttrServices extends BaseServices
];
if (!$productVirtual->count(['card_no' => $items['key'], 'card_pwd' => $items['value']])) {
$productVirtual->save($data);
} else {
throw new AdminException(400590, ['key' => $items['key'], 'value' => $items['value']]);
}
}
}