|
@@ -414,8 +414,8 @@ class BuyhouseController extends WebBaseController
|
|
|
$house = TalentHouse::find($info['house_id']);
|
|
|
$house['status'] = $this->_get_status($house);
|
|
|
$time = time();
|
|
|
- if ($house['status'] != 2) {
|
|
|
- return response()->json(['status' => 0, 'msg' => '申报未开始或已结束,无法修改']);
|
|
|
+ if (strtotime($house['apply_time_start']) > $time) {
|
|
|
+ return response()->json(['status' => 0, 'msg' => '申报未开始,无法修改']);
|
|
|
}
|
|
|
if ($time > strtotime($house['supply_time'])) {
|
|
|
return response()->json(['status' => 0, 'msg' => '已超过补件时间,无法修改']);
|