修改添加绑定用户权限功能
This commit is contained in:
parent
4add4b8622
commit
2425d668b7
@ -521,14 +521,12 @@ class LocalStoreLogic extends Logic
|
||||
}
|
||||
|
||||
$data = array();
|
||||
foreach ($post['user']['rule'] as $k => &$v) {
|
||||
$data[$k]['lstore_id'] = $post['lstore_id'];
|
||||
$data[$k]['bind_user_id'] = $post['user']['id'];
|
||||
$data[$k]['rule_id'] = $v;
|
||||
$data[$k]['bind_time'] = time();
|
||||
}
|
||||
$data['lstore_id'] = $post['lstore_id'];
|
||||
$data['bind_user_id'] = $post['user']['id'];
|
||||
$data['rule'] = implode(',', $post['user']['id']);
|
||||
$data['bind_time'] = time();
|
||||
|
||||
$result = $model->insertAll($data);
|
||||
$result = $model->insert($data);
|
||||
if ($result) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user