|
|
|
@ -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;
|
|
|
|
|