WIN-2308041133\Administrator hai 1 día
pai
achega
8d52b1b288
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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("签字错误");
         }
         $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)) {
             $info = $info->toArray();
         } else {