更新验证结束委托申请判定
This commit is contained in:
parent
dd105b75d9
commit
3f0de6b3d5
@ -884,7 +884,7 @@ class Community extends BaseController
|
||||
//委托周期截止5天内可申请结束委托
|
||||
$limitTime = strtotime($communityInfo['entrust_start_date']) + ($entrustInfo['entrust_day'] ?? 0) * 86400 - 5 * 86400;
|
||||
if (time() < $limitTime) {
|
||||
return app('json')->fail('委托周期截止5天内可申请结束委托');
|
||||
//return app('json')->fail('委托周期截止5天内可申请结束委托');
|
||||
}
|
||||
$res = Db::name('community')->where('community_id', $id)->where('is_del', 0)->update(['entrust_finish' => 3]);
|
||||
if (!$res) {
|
||||
@ -916,7 +916,7 @@ class Community extends BaseController
|
||||
//委托周期截止5天内可申请结束委托
|
||||
$limitTime = strtotime($communityInfo['entrust_start_date']) + ($entrustInfo['entrust_day'] ?? 0) * 86400 - 5 * 86400;
|
||||
if (time() < $limitTime) {
|
||||
return app('json')->fail('委托周期截止5天内可申请结束委托');
|
||||
//return app('json')->fail('委托周期截止5天内可申请结束委托');
|
||||
}
|
||||
// 分润
|
||||
$res = Db::name('community')->where('community_id', $id)->where('is_del', 0)->update(['entrust_finish' => 1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user