切换导航条
此项目
正在载入...
登录
外包项目
/
signUpForCar
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
sgj
6 years ago
提交
1a277de1a1bd064f547b2af09e8837589900bf01
1 个父辈
a9e51b2b
1 个管道 的构建
通过
耗费 0 秒
修改预约提交逻辑
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
4 行增加
和
2 行删除
app/debug.php
app/user/controller/YuyueController.php
public/index.php
app/debug.php
查看文件 @
1a277de
...
...
@@ -13,6 +13,6 @@ return [
// 应用调试模式
'app_debug'
=>
true
,
// 应用Trace
'app_trace'
=>
tru
e
,
'app_trace'
=>
fals
e
,
];
\ No newline at end of file
...
...
app/user/controller/YuyueController.php
查看文件 @
1a277de
...
...
@@ -304,6 +304,8 @@ class YuyueController extends UserBaseController
$exist_map1['yuyue_end']
= ['<=',
$end
];
$is_exist1
=\db('yuyue')->where(
$exist_map1
)->find();
dump(
$is_exist1
);
dump(
$is_exist
);
if (!empty(
$is_exist
)||!empty(
$is_exist1
)){
return json(['code' => '0', 'msg' => '您好,您的预约时间与其他学员冲突,请刷新后提交!']);
}
...
...
public/index.php
查看文件 @
1a277de
...
...
@@ -10,7 +10,7 @@
// [ 入口文件 ]
date_default_timezone_set
(
'Asia/Shanghai'
);
// 调试模式开关
define
(
"APP_DEBUG"
,
0
);
define
(
"APP_DEBUG"
,
1
);
// 定义CMF根目录,可更改此目录
define
(
'CMF_ROOT'
,
__DIR__
.
'/../'
);
...
...
请
注册
或
登录
后发表评论