shish 3 år sedan
förälder
incheckning
47ac978494
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      biz-ghs/product/classes/ProductClass.php

+ 2 - 1
biz-ghs/product/classes/ProductClass.php

@@ -1670,7 +1670,8 @@ class ProductClass extends BaseClass
                 //从平台导入花材
                 $has = self::getByCondition(['mainId' => $mainId, 'itemId' => $data['itemId']], true);
                 if (!empty($has)) {
-                    util::fail('已经导入过了哦');
+                    $hasName = $has->name ?? '';
+                    util::fail($hasName . '已经存在了');
                 }
             }