|
@@ -1396,7 +1396,7 @@ class User extends BaseController
|
|
|
return app('json')->fail("签字错误");
|
|
return app('json')->fail("签字错误");
|
|
|
}
|
|
}
|
|
|
$time = time();
|
|
$time = time();
|
|
|
- $info = (new UserContractRecordModel)->where("id", $post["contract_id"])->where('start_time', '>', $time)->where('end_time', '<', $time)->find();
|
|
|
|
|
|
|
+ $info = (new UserContractRecordModel)->where('status',1)->where("id", $post["contract_id"])->where('start_time', '<', $time)->where('end_time', '>', $time)->find();
|
|
|
if (!empty($info)) {
|
|
if (!empty($info)) {
|
|
|
$info = $info->toArray();
|
|
$info = $info->toArray();
|
|
|
} else {
|
|
} else {
|