shish 2 лет назад
Родитель
Сommit
184d1c4076
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -191,7 +191,7 @@ class PurchaseController extends BaseController
         $ghsShopId = $ghsInfo['shopId'] ?? 0;
 
         if (isset($ghsInfo['mainId']) && !empty($ghsInfo['mainId']) && $ghsInfo['mainId'] == $ghsInfo['ownMainId']) {
-
+            util::fail('不能跟自己的店买花');
         }
 
         $connection = Yii::$app->db;//事务处理