Your Name hace 3 años
padre
commit
f20d083312
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      learn/active/src/User.php

+ 1 - 1
learn/active/src/User.php

@@ -26,7 +26,7 @@ Class User extends Core
         }
         $info = Dever::db('active/order')->getNum(array('uid'=>$this->uid,'active_id'=>$order['active_id']));
         $active = Dever::db('active/info')->find($order['active_id']);
-        if ($info['total'] >= $active['num']) {
+        if ($active['num']>0 && $info['total'] >= $active['num']) {
             Dever::alert('您已超过限购数量');
         }
         $jump = Dever::input('jump');