切换导航条
此项目
正在载入...
登录
郭盛
/
areial
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
14db1379d7217781662b2e57d5695404909d6d27
1 个父辈
7bd59ceb
1 个管道 的构建
通过
耗费 5 秒
重复购买图片
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
53 行增加
和
40 行删除
.idea/workspace.xml
application/api/controller/User.php
public/api.html
.idea/workspace.xml
查看文件 @
14db137
...
...
@@ -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=
"400"
>
<caret
line=
"1020"
column=
"47"
lean-forward=
"true"
selection-start-line=
"1020"
selection-start-column=
"47"
selection-end-line=
"1020"
selection-end-column=
"47"
/>
<state
relative-caret-position=
"477"
>
<caret
line=
"960"
column=
"13"
lean-forward=
"false"
selection-start-line=
"960"
selection-start-column=
"13"
selection-end-line=
"960"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#365#484#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#490#1228#0#PHP"
expanded=
"false"
/>
...
...
@@ -57,21 +58,21 @@
<element
signature=
"e#29140#29553#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#29558#30037#0#PHP"
expanded=
"false"
/>
<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#32315#32401#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32490#32578#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34126#34886#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34891#36492#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36518#37349#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37355#37775#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37780#38263#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38269#39075#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#39080#42234#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42249#43577#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#43593#44620#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44627#45385#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#45390#47777#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#31973#32627#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32632#34585#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32786#32872#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32961#33049#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34597#35357#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#35362#36963#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36989#37820#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37826#38246#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38251#38734#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38740#39546#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#39551#42705#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42720#44048#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44064#45091#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#45098#45856#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#45861#48248#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
...
...
@@ -176,8 +177,8 @@
</component>
<component
name=
"PhpWorkspaceProjectConfiguration"
backward_compatibility_performed=
"true"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"320"
/>
<option
name=
"y"
value=
"39"
/>
<option
name=
"x"
value=
"211"
/>
<option
name=
"y"
value=
"65"
/>
<option
name=
"width"
value=
"1806"
/>
<option
name=
"height"
value=
"981"
/>
</component>
...
...
@@ -276,7 +277,7 @@
<workItem
from=
"1574336957891"
duration=
"1350000"
/>
<workItem
from=
"1574382087071"
duration=
"22007000"
/>
<workItem
from=
"1574410294356"
duration=
"15863000"
/>
<workItem
from=
"1574469667436"
duration=
"1
1427
000"
/>
<workItem
from=
"1574469667436"
duration=
"1
2858
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"调试"
>
<created>
1574145133364
</created>
...
...
@@ -289,7 +290,7 @@
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"1
89237
000"
/>
<option
name=
"totallyTimeSpent"
value=
"1
90668
000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -301,7 +302,7 @@
</todo-panel>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
320"
y=
"39
"
width=
"1806"
height=
"981"
extended-state=
"0"
/>
<frame
x=
"
211"
y=
"65
"
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"
/>
...
...
@@ -707,8 +708,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/api/controller/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"400"
>
<caret
line=
"1020"
column=
"47"
lean-forward=
"true"
selection-start-line=
"1020"
selection-start-column=
"47"
selection-end-line=
"1020"
selection-end-column=
"47"
/>
<state
relative-caret-position=
"477"
>
<caret
line=
"960"
column=
"13"
lean-forward=
"false"
selection-start-line=
"960"
selection-start-column=
"13"
selection-end-line=
"960"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#365#484#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#490#1228#0#PHP"
expanded=
"false"
/>
...
...
@@ -748,21 +749,21 @@
<element
signature=
"e#29140#29553#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#29558#30037#0#PHP"
expanded=
"false"
/>
<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#32315#32401#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32490#32578#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34126#34886#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34891#36492#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36518#37349#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37355#37775#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37780#38263#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38269#39075#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#39080#42234#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42249#43577#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#43593#44620#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44627#45385#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#45390#47777#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#31973#32627#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32632#34585#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32786#32872#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#32961#33049#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#34597#35357#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#35362#36963#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#36989#37820#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#37826#38246#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38251#38734#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#38740#39546#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#39551#42705#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#42720#44048#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#44064#45091#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#45098#45856#0#PHP"
expanded=
"false"
/>
<element
signature=
"e#45861#48248#0#PHP"
expanded=
"false"
/>
</folding>
</state>
</provider>
...
...
application/api/controller/User.php
查看文件 @
14db137
...
...
@@ -947,6 +947,18 @@ class User extends Api
}
elseif
(
$param
[
'total'
]
<=
0
){
$this
->
error
([
'code'
=>
3
,
'msg'
=>
'非法操作'
]);
}
else
{
$where
[
'status'
]
=
2
;
$where
[
'user_id'
]
=
$param
[
'user_id'
];
$arr
=
Db
::
name
(
'order'
)
->
field
(
'id,pic_id'
)
->
where
(
$where
)
->
select
();
foreach
(
$arr
as
&
$v
){
$v
[
'pic_id'
]
=
explode
(
','
,
$v
[
'pic_id'
]);
if
(
in_array
(
$param
[
'pic_id'
],
$v
[
'pic_id'
])){
$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
查看文件 @
14db137
...
...
@@ -5529,7 +5529,7 @@
<div
class=
"row mt0 footer"
>
<div
class=
"col-md-6"
align=
"left"
>
Generated on 2019-11-23 1
2:00:20
</div>
Generated on 2019-11-23 1
3:14:33
</div>
<div
class=
"col-md-6"
align=
"right"
>
<a
href=
"https://www.fastadmin.net"
target=
"_blank"
>
FastAdmin
</a>
</div>
...
...
请
注册
或
登录
后发表评论