Browse Source

修改注释

master
李可松 4 years ago
parent
commit
6ee2622402
  1. 6
      app/Admin/Extensions/Grid/AuditAgent.php

6
app/Admin/Extensions/Grid/AuditAgent.php

@ -112,9 +112,9 @@ class AuditAgent extends RowAction
//插入权限表
if ($user->status == UserStatus::NORMAL) {
$roleArr = [
AgentType::CLUSTER => 4, //计调旅行社 role_id
AgentType::SUPPLIER => 2, //供应商旅行社 role_id
AgentType::OPERATOR => 3, //组团旅行社 role_id
AgentType::SUPPLIER => 2, //供应商旅行社,对应后台的角色role_id
AgentType::CLUSTER => 3, //计调旅行社,对应后台的角色role_id
AgentType::OPERATOR => 4, //组团旅行社,对应后台的角色role_id
];
DB::table(config('admin-agent.database.role_users_table'))
->insertOrIgnore(['role_id' => $roleArr[$user->type], 'user_id' => $this->getKey()]);

Loading…
Cancel
Save