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

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

@@ -36,7 +36,7 @@ Class Off extends Coreoff
 				if (strlen($code) != 11){
 					Dever::alert('手机号或核销码不正确');
 				} else {
-					$tell = preg_match("^1[3456789]\d{9}$/",$code);
+					$tell = preg_match("/^1[3456789]\d{9}$/",$code);
 					if ($tell) {
 						$user = Dever::db('active/user')->find(array('mobile'=>$code));
 						if ($user) {