dever 7 år sedan
förälder
incheckning
6dd4b37c26
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      youzan/src/Card.php

+ 6 - 0
youzan/src/Card.php

@@ -21,6 +21,12 @@ class Card
 		return $len;
 	}
 
+	public function len($id = false)
+	{
+		$id = Dever::input('id', $id);
+		return Dever::lock($this->lock . '_' . $id);
+	}
+
 	public function total()
 	{
 		$info = Dever::db('youzan/card')->state();