浏览代码

提示语

shish 4 年之前
父节点
当前提交
adc3a03b9f
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app-ghs/controllers/GhsController.php

+ 1 - 2
app-ghs/controllers/GhsController.php

@@ -53,9 +53,8 @@ class GhsController extends BaseController
                 $hasGhs = GhsClass::getByCondition(['ownShopId' => $this->shopId, 'shopId' => $currentShopId], true);
                 $hasGhs = GhsClass::getByCondition(['ownShopId' => $this->shopId, 'shopId' => $currentShopId], true);
                 if (!empty($hasGhs)) {
                 if (!empty($hasGhs)) {
                     $name = $hasGhs->name ?? '';
                     $name = $hasGhs->name ?? '';
-                    util::fail("此手机和供应商【{$name}】您已添加过了");
+                    util::fail("手机已添加过了,供应商名称:【{$name}】");
                 }
                 }
-
                 $ghs = GhsClass::build($currentShopId, $shopId, 1);
                 $ghs = GhsClass::build($currentShopId, $shopId, 1);
                 $ghs['avatar'] = imgUtil::groupImg($ghs['avatar']);
                 $ghs['avatar'] = imgUtil::groupImg($ghs['avatar']);
                 $transaction->commit();
                 $transaction->commit();