模块修改
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
namespace app\guildAdmin\model;
|
||||
namespace app\guildadmin\model;
|
||||
|
||||
use fast\Random;
|
||||
use think\Model;
|
||||
use think\Session;
|
||||
use app\guildAdmin\library\Auth;
|
||||
use app\guildadmin\library\Auth;
|
||||
|
||||
class Admin extends Model
|
||||
{
|
||||
@@ -51,13 +51,13 @@ class Admin extends Model
|
||||
'rules' => '*',
|
||||
'status' => 'normal'
|
||||
];
|
||||
$group = model('guildAdmin/AuthGroup')->create($group_data);
|
||||
$group = model('guildadmin/AuthGroup')->create($group_data);
|
||||
if (!$group) {
|
||||
return V(0,"失败", []);
|
||||
}
|
||||
$dataset = [];
|
||||
$dataset[] = ['uid' => $this->id, 'group_id' => $group['id']];
|
||||
model('guildAdmin/AuthGroupAccess')->saveAll($dataset);
|
||||
model('guildadmin/AuthGroupAccess')->saveAll($dataset);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user