shish 3 жил өмнө
parent
commit
ad8d2e6b04

+ 1 - 1
app-ghs/controllers/ItemMsController.php

@@ -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 = [];