shish hace 2 años
padre
commit
abf72a2a38
Se han modificado 1 ficheros con 17 adiciones y 0 borrados
  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();
 
             util::success($respond);