切换导航条
此项目
正在载入...
登录
郭盛
/
areial
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
007e5c743c52f9b66f79f18d3e5cc67a7b0814c2
1 个父辈
f0bb4b94
1 个管道 的构建
通过
耗费 1 秒
修改不能重复购物
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
41 行增加
和
31 行删除
.idea/workspace.xml
application/api/controller/User.php
public/api.html
.idea/workspace.xml
查看文件 @
007e5c7
...
...
@@ -3,6 +3,7 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/application/api/controller/User.php"
afterPath=
"$PROJECT_DIR$/application/api/controller/User.php"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/public/api.html"
afterPath=
"$PROJECT_DIR$/public/api.html"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -16,8 +17,8 @@
<file
leaf-file-name=
"User.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/application/api/controller/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5"
>
<caret
line=
"1241"
column=
"30"
lean-forward=
"true"
selection-start-line=
"1241"
selection-start-column=
"30"
selection-end-line=
"1241"
selection-end-column=
"30"
/>
<state
relative-caret-position=
"291"
>
<caret
line=
"1010"
column=
"13"
lean-forward=
"false"
selection-start-line=
"1010"
selection-start-column=
"13"
selection-end-line=
"1010"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#365#484#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#490#1228#0#PHP"
expanded=
"false"
/>
...
...
@@ -59,16 +60,17 @@
<element
signature=
"e#30043#30577#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#30582#31496#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#31502#32156#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#33432#34192#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34197#35272#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#35298#36129#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36135#36555#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36560#37043#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37049#37855#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37860#41014#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42373#43400#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#43407#44165#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44170#46557#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#33763#34523#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34528#35603#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#35629#36460#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36466#36886#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36891#37374#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37380#38186#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38191#41345#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#41360#42688#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42704#43731#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#43738#44496#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44501#46888#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
...
...
@@ -171,9 +173,9 @@
<sorting>
DEFINITION_ORDER
</sorting>
</component>
<component
name=
"PhpWorkspaceProjectConfiguration"
backward_compatibility_performed=
"true"
/>
<component
name=
"ProjectFrameBounds"
extendedState=
"1"
>
<option
name=
"x"
value=
"118"
/>
<option
name=
"y"
value=
"2"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"379"
/>
<option
name=
"y"
value=
"84"
/>
<option
name=
"width"
value=
"1806"
/>
<option
name=
"height"
value=
"981"
/>
</component>
...
...
@@ -272,7 +274,7 @@
<workItem
from=
"1574336957891"
duration=
"1350000"
/>
<workItem
from=
"1574382087071"
duration=
"22007000"
/>
<workItem
from=
"1574410294356"
duration=
"15863000"
/>
<workItem
from=
"1574469667436"
duration=
"
943
000"
/>
<workItem
from=
"1574469667436"
duration=
"
1441
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"调试"
>
<created>
1574145133364
</created>
...
...
@@ -285,7 +287,7 @@
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"17
8753
000"
/>
<option
name=
"totallyTimeSpent"
value=
"17
9251
000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -297,7 +299,7 @@
</todo-panel>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
118"
y=
"2"
width=
"1806"
height=
"981"
extended-state=
"1
"
/>
<frame
x=
"
379"
y=
"84"
width=
"1806"
height=
"981"
extended-state=
"0
"
/>
<layout>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.15005727"
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"
/>
...
...
@@ -702,8 +704,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/api/controller/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5"
>
<caret
line=
"1241"
column=
"30"
lean-forward=
"true"
selection-start-line=
"1241"
selection-start-column=
"30"
selection-end-line=
"1241"
selection-end-column=
"30"
/>
<state
relative-caret-position=
"291"
>
<caret
line=
"1010"
column=
"13"
lean-forward=
"false"
selection-start-line=
"1010"
selection-start-column=
"13"
selection-end-line=
"1010"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#365#484#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#490#1228#0#PHP"
expanded=
"false"
/>
...
...
@@ -745,16 +747,17 @@
<element
signature=
"e#30043#30577#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#30582#31496#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#31502#32156#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#33432#34192#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34197#35272#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#35298#36129#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36135#36555#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36560#37043#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37049#37855#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37860#41014#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42373#43400#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#43407#44165#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44170#46557#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#33763#34523#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34528#35603#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#35629#36460#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36466#36886#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36891#37374#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37380#38186#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38191#41345#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#41360#42688#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42704#43731#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#43738#44496#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44501#46888#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
...
...
application/api/controller/User.php
查看文件 @
007e5c7
...
...
@@ -1002,6 +1002,13 @@ class User extends Api
$a
[
0
][
'id'
]
=
$video_id
;
$a
[
0
][
'attr'
]
=
$video_attr
;
$param
[
'video_id'
]
=
serialize
(
$a
);
$where
[
'user_id'
]
=
[
'eq'
,
$param
[
'user_id'
]];
$where
[
'video_id'
]
=
[
'eq'
,
$param
[
'video_id'
]];
$where
[
'status'
]
=
[
'eq'
,
2
];
$res
=
Db
::
name
(
'order'
)
->
where
(
$where
)
->
find
();
if
(
!
empty
(
$res
)){
$this
->
error
([
'code'
=>
2
,
'msg'
=>
'您已经购买过了,无需重复购买'
]);
}
$param
[
'createtime'
]
=
time
();
$param
[
'num'
]
=
date
(
'Ymd'
)
.
substr
(
implode
(
NULL
,
array_map
(
'ord'
,
str_split
(
substr
(
uniqid
(),
7
,
13
),
1
))),
0
,
8
);
$data
=
Db
::
name
(
'order'
)
...
...
public/api.html
查看文件 @
007e5c7
...
...
@@ -5529,7 +5529,7 @@
<div
class=
"row mt0 footer"
>
<div
class=
"col-md-6"
align=
"left"
>
Generated on 2019-11-23 0
8:56:48
</div>
Generated on 2019-11-23 0
9:05:05
</div>
<div
class=
"col-md-6"
align=
"right"
>
<a
href=
"https://www.fastadmin.net"
target=
"_blank"
>
FastAdmin
</a>
</div>
...
...
请
注册
或
登录
后发表评论