更新结束委托申请

This commit is contained in:
yaooo 2023-09-09 16:49:41 +08:00
parent 0c911f4ad0
commit e86dc63783

View File

@ -909,7 +909,7 @@ class Community extends BaseController
// 同意
if ($status == 1) {
$entrustInfo = Db::name('entrust')->where('community_id', $id)->where('is_del', 0)->find();
$limitTime = strtotime($entrustInfo['entrust_start_date']) + ($entrustInfo['entrust_day'] ?? 0) * 86400;
$limitTime = strtotime($communityInfo['entrust_start_date']) + ($entrustInfo['entrust_day'] ?? 0) * 86400;
if (time() < $limitTime) {
return app('json')->fail('委托时间内不能结束委托');
}