切换导航条
此项目
正在载入...
登录
郭盛
/
areial
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
5cb847f1d2e4f0b414229f0b3bf56f96eaa55185
1 个父辈
04876c0f
1 个管道 的构建
通过
耗费 1 秒
修改接口
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
application/api/controller/User.php
application/api/controller/User.php
查看文件 @
5cb847f
...
...
@@ -1818,7 +1818,7 @@ class User extends Api
$send
->
sms
(
$mobile1
,
$content
);
$this
->
error
(
'error'
,
$data
);
$this
->
error
(
'error'
,
[
'code'
=>
1
,
'info'
=>
$data
]
);
}
else
{
$data
[
'is_enough'
]
=
1
;
...
...
@@ -1833,7 +1833,7 @@ class User extends Api
->
where
(
'video_id'
,
$video_s
)
->
find
();
if
(
!
empty
(
$res
)){
$this
->
error
(
'
该属性的视频已经购买过了'
);
$this
->
error
(
'
error'
,[
'code'
=>
2
]
);
}
$param
[
'video_id'
]
=
serialize
(
$video
);
}
else
{
...
...
@@ -1845,7 +1845,7 @@ class User extends Api
foreach
(
$arr
as
&
$v
){
if
(
!
empty
(
$v
[
'pic_id'
])){
if
(
$v
[
'pic_id'
]
==
$pic_id
){
$this
->
error
(
'
该图片已经购买过了'
);
$this
->
error
(
'
error'
,[
'code'
=>
2
]
);
}
}
}
...
...
@@ -1856,7 +1856,7 @@ class User extends Api
$data_order
=
Db
::
name
(
'iphone'
)
->
insertGetId
(
$param
);
if
(
empty
(
$data_order
)){
$this
->
error
(
[
'code'
=>
2
,
'msg'
=>
'sql执行失败'
]
);
$this
->
error
(
'sql执行失败'
);
}
else
{
$send
=
new
Pay
();
Db
::
startTrans
();
...
...
请
注册
或
登录
后发表评论