Your Name 3 years ago
parent
commit
44fc56f704
1 changed files with 4 additions and 1 deletions
  1. 4 1
      learn/active/src/Off.php

+ 4 - 1
learn/active/src/Off.php

@@ -40,7 +40,10 @@ Class Off extends Coreoff
 					if ($tell) {
 						$user = Dever::db('active/user')->find(array('mobile'=>$code));
 						if ($user) {
-							$data = Dever::db('active/code')->find(array('join_uid'=>$user['id']));
+							$data = Dever::db('active/code')->find(array('join_uid'=>$user['id'],'status'=> 1));
+							if (!$data) {
+								Dever::alert('手机号或核销码不正确或已核销');
+							}
 						} else {
 							Dever::alert('手机号或核销码不正确');
 						}