|
@@ -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) {
|