shish 2 ani în urmă
părinte
comite
abf72a2a38
1 a modificat fișierele cu 17 adăugiri și 0 ștergeri
  1. 17 0
      app-hd/controllers/PurchaseController.php

+ 17 - 0
app-hd/controllers/PurchaseController.php

@@ -442,6 +442,23 @@ class PurchaseController extends BaseController
                 }
                 }
             }
             }
 
 
+            if (getenv('YII_ENV') == 'production') {
+                //昆明花落谁家
+                if ($ghsShopId == 13398) {
+                    if ($respond->bigNum < 15) {
+                        $transaction->rollBack();
+                        util::fail('不足15扎,请联系店长');
+                    }
+                }
+            } else {
+                if ($ghsShopId == 36523) {
+                    if ($respond->bigNum < 15) {
+                        $transaction->rollBack();
+                        util::fail('不足15扎,请联系店长');
+                    }
+                }
+            }
+
             $transaction->commit();
             $transaction->commit();
 
 
             util::success($respond);
             util::success($respond);