|
@@ -146,10 +146,16 @@ Class Excel {
|
|
|
if ($where['mobile']) {
|
|
|
$where['pass'] = substr($where['mobile'],-6);
|
|
|
}
|
|
|
- $info = Dever::db('active/info_off')->find(array('mobile'=>$where['mobile']));
|
|
|
+ $info = Dever::db('active/info_off')->find(array('mobile'=>$where['mobile'],'clear'=>true));
|
|
|
|
|
|
if (!$info){
|
|
|
Dever::db('active/info_off')->insert($where);
|
|
|
+ } else {
|
|
|
+ if ($info && $info['pass'] != sha1(substr($info['mobile'],-6))) {
|
|
|
+ $w['where_id'] = $info['id'];
|
|
|
+ $w['pass'] = substr($info['mobile'],-6);
|
|
|
+ Dever::db('active/info_off')->update($w);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|