Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projecttwo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangtao
projecttwo
Commits
029c11bc
Commit
029c11bc
authored
Jun 11, 2025
by
wangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理后台 看板
parent
bfbd5862
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
460 additions
and
28 deletions
+460
-28
Upload.php
app/admin/controller/system/Upload.php
+1
-0
index.html
app/admin/view/index/index.html
+1
-1
System.php
app/api/controller/System.php
+7
-5
Upload.php
app/api/controller/Upload.php
+419
-0
CertOrder.php
app/model/CertOrder.php
+3
-3
CourseClass.php
app/model/CourseClass.php
+1
-1
CourseTeacher.php
app/model/CourseTeacher.php
+1
-1
CourseUserWork.php
app/model/CourseUserWork.php
+1
-1
Project.php
app/model/Project.php
+1
-1
ProjectCategory.php
app/model/ProjectCategory.php
+1
-1
Business.php
app/model/project/Business.php
+7
-7
School.php
app/model/project/School.php
+4
-4
User.php
app/model/project/User.php
+1
-1
route.php
config/route.php
+1
-1
routeapp.php
config/routeapp.php
+10
-0
swoole.php
route/swoole.php
+1
-1
No files found.
app/admin/controller/system/Upload.php
View file @
029c11bc
...
...
@@ -118,6 +118,7 @@ class Upload extends BaseController
*/
public
function
upfile
(
string
$file
=
'file'
,
int
$groupid
=
0
,
string
$action
=
''
,
string
$thum
=
''
)
{
echo
111
;
exit
;
$action
=
$action
?
$action
:
input
(
'action'
);
if
(
!
$action
)
return
$this
->
returnMsg
(
'参数错误'
);
...
...
app/admin/view/index/index.html
View file @
029c11bc
...
...
@@ -67,7 +67,7 @@ layui.config({
viewSuffix
:
''
,
// 视图后缀
reqPutToPost
:
true
,
// req请求put方法变成post
apiNoCache
:
true
,
// ajax请求json数据不带版本号
tabAutoRefresh
:
tru
e
,
// 是否每点击菜单都刷新
tabAutoRefresh
:
fals
e
,
// 是否每点击菜单都刷新
tableName
:
'vadmin'
,
// 存储表名
token
:
'{:token($tokenName)}'
,
// CSRF-TOKEN
}
...
...
app/api/controller/System.php
View file @
029c11bc
...
...
@@ -13,12 +13,14 @@ class System extends BaseController
*/
public
function
getBannerList
()
{
$list
=
AdvertCate
::
where
([
'position'
=>
1
,
'is_show'
=>
1
,
'is_del'
=>
0
])
->
with
([
'getAdvertList'
=>
[
'coverImg'
]])
->
find
()
->
toArray
();
return
$this
->
returnMsg
(
'操作成功'
,
1
,
$list
);
$position
=
$this
->
request
->
param
(
'position'
,
'0'
);
$list
=
AdvertCate
::
where
([
'id'
=>
$position
,
'is_show'
=>
1
,
'is_del'
=>
0
])
->
with
([
'getAdvertList'
=>
[
'coverImg'
]])
->
find
();
return
$this
->
returnMsg
(
'操作成功'
,
1
,
$list
);
}
...
...
app/api/controller/Upload.php
0 → 100644
View file @
029c11bc
This diff is collapsed.
Click to expand it.
app/model/CertOrder.php
View file @
029c11bc
...
...
@@ -117,21 +117,21 @@ class CertOrder extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'idcard_q'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
public
function
idcardH
()
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'idcard_h'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
public
function
headImg
()
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'head_img_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
...
...
app/model/CourseClass.php
View file @
029c11bc
...
...
@@ -11,6 +11,6 @@ class CourseClass extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'tv_file'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
}
\ No newline at end of file
app/model/CourseTeacher.php
View file @
029c11bc
...
...
@@ -33,7 +33,7 @@ class CourseTeacher extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'thumb_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
}
\ No newline at end of file
app/model/CourseUserWork.php
View file @
029c11bc
...
...
@@ -75,7 +75,7 @@ class CourseUserWork extends Model
$detail
[
'attachment_file'
]
=
!
empty
(
$attachmentIds
)
?
SystemUploadFile
::
whereIn
(
'fileid'
,
$attachmentIds
)
->
field
(
'fileurl,fileid,filename,filetype'
)
->
field
(
'fileurl,fileid,filename,filetype
,storage
'
)
->
select
()
->
toArray
()
:
[];
...
...
app/model/Project.php
View file @
029c11bc
...
...
@@ -169,7 +169,7 @@ class Project extends Model
return
SystemUploadFile
::
whereIn
(
'fileid'
,
explode
(
','
,
$fileIds
))
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
)
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
)
->
select
()
->
toArray
();
}
...
...
app/model/ProjectCategory.php
View file @
029c11bc
...
...
@@ -55,7 +55,7 @@ class ProjectCategory extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'thumb'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
public
function
getProjectCategoryList
(
$pid
=
0
)
...
...
app/model/project/Business.php
View file @
029c11bc
...
...
@@ -18,7 +18,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'business_qualification_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
//行业
...
...
@@ -26,7 +26,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'business_industry_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
//项目
...
...
@@ -34,7 +34,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'business_project_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
//补充材料
...
...
@@ -42,7 +42,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'more_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
//企业logo
...
...
@@ -50,7 +50,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'business_logo_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
...
...
@@ -59,7 +59,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'frsfz_qian'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
//法人身份证反面
...
...
@@ -67,7 +67,7 @@ class Business extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'frsfz_hou'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
...
...
app/model/project/School.php
View file @
029c11bc
...
...
@@ -18,7 +18,7 @@ class School extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'school_qualification_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype,fileext
,storage
'
);
}
//导师资质
...
...
@@ -26,7 +26,7 @@ class School extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'teacher_qualification_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid, filename, filesize, fileurl, filetype,fileext'
);
->
field
(
'fileid, filename, filesize, fileurl, filetype,fileext
,storage
'
);
}
//合作协议
...
...
@@ -34,7 +34,7 @@ class School extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'agreement_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid, filename, filesize, fileurl, filetype,fileext'
);
->
field
(
'fileid, filename, filesize, fileurl, filetype,fileext
,storage
'
);
}
//补充材料
...
...
@@ -42,7 +42,7 @@ class School extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'more_url_id'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid, filename, filesize, fileurl, filetype,fileext'
);
->
field
(
'fileid, filename, filesize, fileurl, filetype,fileext
,storage
'
);
}
//用户信息
...
...
app/model/project/User.php
View file @
029c11bc
...
...
@@ -30,7 +30,7 @@ class User extends Model
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'headico'
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
->
field
(
'fileid,filename,filesize,fileurl,filetype
,storage
'
);
}
public
function
zfb
()
...
...
config/route.php
View file @
029c11bc
...
...
@@ -42,4 +42,4 @@ return [
'default_jsonp_handler'
=>
'jsonpReturn'
,
// 默认JSONP处理方法
'var_jsonp_handler'
=>
'callback'
,
];
\ No newline at end of file
];
config/routeapp.php
0 → 100644
View file @
029c11bc
<?php
// +----------------------------------------------------------------------
// | 路由设置
// +----------------------------------------------------------------------
use
think\facade\Route
;
// 注册路由到News控制器的read操作
//Route::rule('api/upload/upfile','admin/system.upload/upfile');
//Route::get('ht','admin');
//Route::auto();
\ No newline at end of file
route/swoole.php
View file @
029c11bc
...
...
@@ -9,4 +9,4 @@ Route::get('static/:path', function (string $path) {
Route
::
get
(
'favicon.ico'
,
function
()
{
$filename
=
public_path
()
.
'favicon.ico'
;
return
new
\think\swoole\response\File
(
$filename
);
});
\ No newline at end of file
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment