@ -923,7 +923,7 @@ class PromoteService {
{
$data = [
'account' => $params['account'],
'password' => $this->password($params['password']),
'password' => $this->password($params['password'], UC_AUTH_KEY),
'nickname' => $params['nickname'] ?? $params['account'],
'second_pwd' => $params['second_pwd'] ?? null,
'real_name' => $params['real_name'],
@ -917,7 +917,7 @@ class PromoteController extends BaseController
if (IS_POST) {
$params = I('post.');
$loginPromote = $this->getLoginPromote();
if ($params['promote_type'] == 0 && $loginPromote['level'] > 1) {
$this->ajaxReturn(['status' => 0, 'msg' => '无权限']);
}
@ -15,6 +15,7 @@
<div class="trunk-list list_normal">
<form action="{:U('Promote/addPromote')}" novalidate="novalidate" method="post" class="base_info" id="form_reg">
<table class="table2">
<input type="hidden" name="promote_type" value="{:I('promote_type', 0)}">
<?php if($promotes != null):?>
<tr>
<td class="l"><span class="req">*</span>{$parentTypeName}:</td>
@ -107,6 +108,7 @@
layer.msg('请选择所属上级');
return
console.log(promote_type)
$.ajax({
type:"POST",
url:"{:U('addPromote')}",