切换导航条
此项目
正在载入...
登录
郭盛
/
areial
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
a6be47202724a7d8d1a5ebea9888bd95856a016a
1 个父辈
04283671
1 个管道 的构建
通过
耗费 1 秒
修改订单管理
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
43 行增加
和
28 行删除
.idea/workspace.xml
application/admin/controller/Order.php
.idea/workspace.xml
查看文件 @
a6be472
...
...
@@ -4,7 +4,6 @@
<list
default=
"true"
id=
"e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/application/admin/controller/Order.php"
afterPath=
"$PROJECT_DIR$/application/admin/controller/Order.php"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/application/api/controller/User.php"
afterPath=
"$PROJECT_DIR$/application/api/controller/User.php"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -15,19 +14,22 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"Order.php"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"Order.php"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/application/admin/controller/Order.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"654"
>
<caret
line=
"75"
column=
"53"
lean-forward=
"true"
selection-start-line=
"75"
selection-start-column=
"53"
selection-end-line=
"75"
selection-end-column=
"53"
/>
<state
relative-caret-position=
"637"
>
<caret
line=
"99"
column=
"0"
lean-forward=
"true"
selection-start-line=
"99"
selection-start-column=
"0"
selection-end-line=
"99"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#392#610#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#2193#2467#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#2288#2388#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#2388#2467#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"User.php"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"User.php"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/application/api/controller/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"354"
>
...
...
@@ -153,8 +155,8 @@
<option
value=
"$PROJECT_DIR$/application/admin/model/Order.php"
/>
<option
value=
"$PROJECT_DIR$/public/assets/js/backend/order.js"
/>
<option
value=
"$PROJECT_DIR$/application/admin/lang/zh-cn/order.php"
/>
<option
value=
"$PROJECT_DIR$/application/admin/controller/Order.php"
/>
<option
value=
"$PROJECT_DIR$/application/api/controller/User.php"
/>
<option
value=
"$PROJECT_DIR$/application/admin/controller/Order.php"
/>
</list>
</option>
</component>
...
...
@@ -173,10 +175,10 @@
</component>
<component
name=
"PhpWorkspaceProjectConfiguration"
backward_compatibility_performed=
"true"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"281"
/>
<option
name=
"y"
value=
"39"
/>
<option
name=
"x"
value=
"277"
/>
<option
name=
"y"
value=
"32"
/>
<option
name=
"width"
value=
"1776"
/>
<option
name=
"height"
value=
"9
66
"
/>
<option
name=
"height"
value=
"9
74
"
/>
</component>
<component
name=
"ProjectView"
>
<navigator
currentView=
"ProjectPane"
proportions=
""
version=
"1"
>
...
...
@@ -293,7 +295,7 @@
<workItem
from=
"1574469667436"
duration=
"25235000"
/>
<workItem
from=
"1574641631900"
duration=
"15479000"
/>
<workItem
from=
"1574669596135"
duration=
"11747000"
/>
<workItem
from=
"1574727687281"
duration=
"
1888
000"
/>
<workItem
from=
"1574727687281"
duration=
"
3074
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"调试"
>
<created>
1574145133364
</created>
...
...
@@ -306,7 +308,7 @@
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"23
2159
000"
/>
<option
name=
"totallyTimeSpent"
value=
"23
3345
000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -318,16 +320,17 @@
</todo-panel>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"281"
y=
"39"
width=
"1776"
height=
"966"
extended-state=
"0"
/>
<frame
x=
"277"
y=
"32"
width=
"1776"
height=
"974"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
tru
e"
show_stripe_button=
"true"
weight=
"0.15792541"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.15792541"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"TODO"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32912987"
sideWeight=
"0.5"
order=
"9"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"0"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
true"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"tru
e"
show_stripe_button=
"true"
weight=
"0.1363088"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"fals
e"
show_stripe_button=
"true"
weight=
"0.1363088"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"0"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -726,16 +729,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/admin/controller/Order.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"654"
>
<caret
line=
"75"
column=
"53"
lean-forward=
"true"
selection-start-line=
"75"
selection-start-column=
"53"
selection-end-line=
"75"
selection-end-column=
"53"
/>
<folding>
<element
signature=
"e#392#610#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/api/controller/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"354"
>
...
...
@@ -800,5 +793,18 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/admin/controller/Order.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"637"
>
<caret
line=
"99"
column=
"0"
lean-forward=
"true"
selection-start-line=
"99"
selection-start-column=
"0"
selection-end-line=
"99"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#392#610#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#2193#2467#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#2288#2388#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#2388#2467#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
...
...
application/admin/controller/Order.php
查看文件 @
a6be472
...
...
@@ -72,16 +72,25 @@ class Order extends Backend
foreach
(
$list
as
&
$v
){
$type_ids
=
$type
->
whereIn
(
'id'
,
$v
[
'pic_id'
])
->
column
(
'title'
);
if
(
!
empty
(
$v
[
'video_id'
])){
$a
=
[];
$v
[
'video_id'
]
=
unserialize
(
$v
[
'video_id'
]);
foreach
(
$v
[
'video_id'
]
as
&
$v1
){
$v1
[
'id'
]
=
$video
->
where
(
'id'
,
$v1
[
'id'
])
->
field
(
'title'
)
->
find
();
//获取视频标题
$v1
[
'id'
]
=
$video
->
where
(
'id'
,
$v1
[
'id'
])
->
column
(
'title'
);
//判断视频属性
if
(
$v1
[
'attr'
]
==
1
){
$v1
[
'attr'
]
=
'2k'
;
}
elseif
(
$v1
[
'attr'
]
==
2
){
$v1
[
'attr'
]
=
'4k'
;
}
else
{
$v1
[
'attr'
]
=
'8k'
;
}
array_push
(
$a
,
$v1
[
'id'
]);
}
// array_push($a,$v1['id']);
// $v['video_id'] = $a;
$v
[
'video_id'
]
=
$a
;
}
$v
[
'pic_id'
]
=
trim
(
implode
(
','
,
$type_ids
),
','
);
}
print_r
(
$list
);
die
;
$result
=
array
(
"total"
=>
$total
,
"rows"
=>
$list
);
return
json
(
$result
);
}
...
...
请
注册
或
登录
后发表评论