shish 2 bulan lalu
induk
melakukan
08a52b7d7b
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      app-ghs/controllers/PurchaseController.php

+ 5 - 0
app-ghs/controllers/PurchaseController.php

@@ -29,6 +29,11 @@ class PurchaseController extends BaseController
         if (empty($cg)) {
             util::fail('没有找到采购单');
         }
+        $payDate = substr($cg->payTime ?? '', 0, 10);
+        //2026年6月1号前的可以取这个数据,之后的不行
+        if ($payDate >= '2026-06-01') {
+            util::fail('该分享链接已失效');
+        }
         $salt = $cg->salt ?? '';
         if (empty($salt)) {
             util::fail('采购单信息无效');