切换导航条
此项目
正在载入...
登录
郭盛
/
enterprise
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
17a84b66d010eaa7488cf4f06fa4559860465ab2
1 个父辈
a6a5133d
1 个管道 的构建
通过
耗费 1 秒
求职招聘时间
变更
2
构建
3
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
20 行增加
和
4 行删除
application/mobile/controller/CompanyJob.php
application/mobile/controller/UserJob.php
application/mobile/controller/CompanyJob.php
查看文件 @
17a84b6
...
...
@@ -247,8 +247,16 @@ class CompanyJob extends Api
$post
=
$this->request
->param();
empty(
$post['name']
) &&
$this->error
('请输入岗位名称');
empty(
$post['type']
) &&
$this->error
('请选择岗位类型');
empty(
$post['start_time']
) &&
$this->error
('请选择开始工作日期');
empty(
$post['end_time']
) &&
$this->error
('请选择结束工作日期');
if(
$post['type']
== '2'){
empty(
$post['start_time']
) &&
$this->error
('请选择开始工作日期');
empty(
$post['end_time']
) &&
$this->error
('请选择结束工作日期');
}
if(!empty(
$post['start_time']
)){
$post['start_time']
= strtotime(
$post['start_time']
);
}
if(!empty(
$post['end_time']
)){
$post['end_time']
= strtotime(
$post['end_time']
);
}
empty(
$post['salary']
) &&
$this->error
('请输入薪资待遇');
empty(
$post['address']
) &&
$this->error
('请输入工作地点');
empty(
$post['lng']
) &&
$this->error
('请输入工作地点经度');
...
...
application/mobile/controller/UserJob.php
查看文件 @
17a84b6
...
...
@@ -228,8 +228,16 @@ class UserJob extends Api
empty
(
$post
[
'name'
])
&&
$this
->
error
(
'请输入岗位名称'
);
empty
(
$post
[
'type'
])
&&
$this
->
error
(
'请选择岗位类型'
);
empty
(
$post
[
'mobile'
])
&&
$this
->
error
(
'请输入手机号'
);
empty
(
$post
[
'start_time'
])
&&
$this
->
error
(
'请选择开始工作日期'
);
empty
(
$post
[
'end_time'
])
&&
$this
->
error
(
'请选择结束工作日期'
);
if
(
$post
[
'type'
]
==
'2'
){
empty
(
$post
[
'start_time'
])
&&
$this
->
error
(
'请选择开始工作日期'
);
empty
(
$post
[
'end_time'
])
&&
$this
->
error
(
'请选择结束工作日期'
);
}
if
(
!
empty
(
$post
[
'start_time'
])){
$post
[
'start_time'
]
=
strtotime
(
$post
[
'start_time'
]);
}
if
(
!
empty
(
$post
[
'end_time'
])){
$post
[
'end_time'
]
=
strtotime
(
$post
[
'end_time'
]);
}
empty
(
$post
[
'salary'
])
&&
$this
->
error
(
'请输入薪资待遇'
);
empty
(
$post
[
'address'
])
&&
$this
->
error
(
'请输入期望工作地点'
);
empty
(
$post
[
'user_job_ability_ids'
])
&&
$this
->
error
(
'请选择资质能力'
);
...
...
请
注册
或
登录
后发表评论