@@ -33,7 +33,7 @@ class ItemMsController extends BaseController
}
$relate = ItemMsClass::getByCondition(['motherId' => $motherId], true);
if (empty($relate)) {
- util::fail('没有找到花材');
+ $relate = ItemMsClass::add(['motherId' => $motherId], true);
$hasIdString = $relate->idList ?? '';
$hasIds = [];