WIN-2308041133\Administrator 2 days ago
parent
commit
8d52b1b288
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/User.php

+ 1 - 1
app/api/controller/User.php

@@ -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 {