shish 2 months ago
parent
commit
8d6039613c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -1106,7 +1106,7 @@ class PurchaseController extends BaseController
                 util::fail('没有找到采购单');
             }
         }
-        if ($info->mainId != $this->mainId) {
+        if (empty($info['mainId']) || $info['mainId'] != $this->mainId) {
             //不能注释,分享付款功能要用,客户没有登录也能付款
             //util::fail('无法访问');
         }