上传文件日志名称修改
This commit is contained in:
parent
69c09c4e30
commit
422a4bc995
@ -97,7 +97,7 @@ class Index extends BaseController
|
||||
$res['filename'] = $data['filename'];
|
||||
$res['filesize'] = $data['filesize'];
|
||||
$res['fileext'] = $data['fileext'];
|
||||
add_log('upload', $data['user_id'], $data);
|
||||
add_log('upload', $data['user_id'], $data,'文件');
|
||||
if($sourse == 'editormd'){
|
||||
//editormd编辑器上传返回
|
||||
return json(['success'=>1,'message'=>'上传成功','url'=>$data['filepath']]);
|
||||
|
@ -138,7 +138,7 @@ class Index
|
||||
$password = set_password($password, $salt);
|
||||
$now_time = time();
|
||||
|
||||
$create_admin_sql = "INSERT INTO " . $data['DB_PREFIX'] . "admin " .
|
||||
$create_admin_sql = "INSERT INTO " . $data['DB_PREFIX'] . "admin" .
|
||||
"(username,salt,pwd,name,nickname,position_id,did,sex,mobile,email,type,thumb,entry_time,create_time,update_time)"
|
||||
. "VALUES "
|
||||
. "('$username','$salt','$password','$name','$nickname',1,1,1,'13800138000','gouguoa@gougucms.com',1,'$thumb','$now_time','$now_time','$now_time')";
|
||||
|
Loading…
x
Reference in New Issue
Block a user