Commit c5218631 authored by hujun's avatar hujun

设置职称优化

parent 2afbe5b7
......@@ -108,6 +108,10 @@ class Broker extends Basic
$where['site_id'] = $this->params['site_id'];
}
if ($this->params['position'] == -1) {
$where['position'] = 5;
}
if ($where) {
$agent = new AAgents();
$field = 'id,name,phone,status';
......
......@@ -1409,6 +1409,7 @@ class AAgents extends BaseModel
}
if (empty($params['id'])) {
$save_data['position'] = 5;
$save_data['create_time'] = date('Y-m-d H:i:s', time());
$save_data['auth_group_id'] = 5;
$id = $this->insertGetId($save_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment