shish 3 年 前
コミット
7ebbfc9db0
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app-ghs/controllers/ClearController.php

+ 1 - 1
app-ghs/controllers/ClearController.php

@@ -21,7 +21,7 @@ class ClearController extends BaseController
         $custom = CustomClass::getById($customId, true);
         CustomClass::valid($custom, $this->shopId);
         $info = ClearClass::getByCondition(['customId' => $customId, 'status' => 1], true);
-        if ($info->deadline < date("Y-m-d H:i:s")) {
+        if (isset($info->deadline) && $info->deadline < date("Y-m-d H:i:s")) {
             $info->status = 3;
             $info->save();
             util::success(['info' => []]);