Explorar o código

Merge branch 'dev_wf' of wugg/phpstock into version1.5

wufeng %!s(int64=2) %!d(string=hai) anos
pai
achega
aebaf9272a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/admin/controller/Activity.php

+ 1 - 1
app/admin/controller/Activity.php

@@ -288,7 +288,7 @@ class Activity extends Base
                                 ->where(['spuCode' => $good['spuCode'], 'is_del' => 0])
                                 ->sum('usable_stock');
 
-                            if ($value['activity_stock'] < $usable_stock) throw new \Exception($lemp['good_name'] . '的库存只有' . $usable_stock);
+                            if ($value['activity_stock'] > $usable_stock) throw new \Exception($lemp['good_name'] . '的库存只有' . $usable_stock);
                         }
 
                     }