|
|
|
@ -55,11 +55,15 @@ class PackageController extends Controller
|
|
|
|
|
$promoteId = $data['promote_id'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promote = M('promote', 'tab_')->field(['id', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
|
|
|
|
|
$promote = M('promote', 'tab_')->field(['id', 'account', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
|
|
|
|
|
if (!$promote) {
|
|
|
|
|
$this->error('该链接已失效');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($promote['account'] == 'yl3xiaojian') {
|
|
|
|
|
$this->error('链接无效');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
if (!$promoteService->checkPromoteLimitRule($promote)) {
|
|
|
|
|
$this->error('链接已失效');
|
|
|
|
|