更新结束委托申请
This commit is contained in:
parent
8156b3624c
commit
0c911f4ad0
@ -878,7 +878,7 @@ class Community extends BaseController
|
|||||||
return app('json')->fail('当前商户无申请结束此委托商品权限');
|
return app('json')->fail('当前商户无申请结束此委托商品权限');
|
||||||
}
|
}
|
||||||
$entrustInfo = Db::name('entrust')->where('community_id', $id)->where('is_del', 0)->find();
|
$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) {
|
if (time() < $limitTime) {
|
||||||
return app('json')->fail('委托时间内不能申请结束委托');
|
return app('json')->fail('委托时间内不能申请结束委托');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user