diff --git a/ThinkPHP/Library/Think/Pay.class.php b/ThinkPHP/Library/Think/Pay.class.php index 6f89fd8a..56ddc98b 100644 --- a/ThinkPHP/Library/Think/Pay.class.php +++ b/ThinkPHP/Library/Think/Pay.class.php @@ -59,7 +59,7 @@ class Pay $promote = M('promote', 'tab_')->field(['company_id', 'id'])->where(['id' => $promoteId])->find(); } if ($promote) { - $company = M('promote_company', 'tab_')->field(['ali_partner', 'id'])->where(['id' => $promote['compnay_id']])->find(); + $company = M('promote_company', 'tab_')->field(['ali_partner', 'id'])->where(['id' => $promote['company_id']])->find(); } if ($company && $company['ali_partner'] == 1) { return true;