信呼OA版本v2.3.8
This commit is contained in:
13
webmain/model/locationModel.php
Normal file
13
webmain/model/locationModel.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
class locationClassModel extends Model
|
||||
{
|
||||
|
||||
public function add($user, $arr)
|
||||
{
|
||||
$uid = (int)m('admin')->getmou('id',"`user`='$user'");
|
||||
$arr['user'] = $user;
|
||||
$arr['uid'] = $uid;
|
||||
$arr['optdt']= $this->rock->now;
|
||||
$this->insert($arr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user